mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
gnu: denemo: Honor TESTS?.
* gnu/packages/music.scm (denemo)[arguments]<#:phases>: Honor TESTS? keyword.
This commit is contained in:
parent
33331efc46
commit
504d15a593
1 changed files with 10 additions and 9 deletions
|
@ -632,16 +632,17 @@ (define-public denemo
|
|||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(lambda* (#:key inputs tests? #:allow-other-keys)
|
||||
;; Tests require to write $HOME.
|
||||
(setenv "HOME" (getcwd))
|
||||
;; Replace hard-coded diff file name.
|
||||
(substitute* "tests/integration.c"
|
||||
(("/usr/bin/diff")
|
||||
(search-input-file inputs "/bin/diff")))
|
||||
;; Denemo's documentation says to use this command to run its
|
||||
;; test suite.
|
||||
(invoke "make" "-C" "tests" "check")))
|
||||
(when tests?
|
||||
(setenv "HOME" (getcwd))
|
||||
;; Replace hard-coded diff file name.
|
||||
(substitute* "tests/integration.c"
|
||||
(("/usr/bin/diff")
|
||||
(search-input-file inputs "/bin/diff")))
|
||||
;; Denemo's documentation says to use this command to run its
|
||||
;; test suite.
|
||||
(invoke "make" "-C" "tests" "check"))))
|
||||
(add-before 'build 'set-lilypond
|
||||
;; This phase sets the default path for lilypond to its current
|
||||
;; location in the store.
|
||||
|
|
Loading…
Reference in a new issue