gnu: git-annex: Honor the #:tests? flag.
* gnu/packages/haskell-apps.scm (git-annex)[arguments]: Adjust the custom 'check phase to honor the #:tests? flag.
This commit is contained in:
parent
4b632fb864
commit
5d93e9e36a
@ -372,15 +372,15 @@ to @code{cabal repl}).")
|
|||||||
(format out "main = buildMansOrWarn~%")))
|
(format out "main = buildMansOrWarn~%")))
|
||||||
(invoke "runhaskell" "Build/MakeMans.hs")))
|
(invoke "runhaskell" "Build/MakeMans.hs")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
;; We need to set the path so that Git recognizes
|
;; We need to set the path so that Git recognizes
|
||||||
;; `git annex' as a custom command.
|
;; `git annex' as a custom command.
|
||||||
(setenv "PATH" (string-append (getenv "PATH") ":"
|
(setenv "PATH" (string-append (getenv "PATH") ":"
|
||||||
(getcwd) "/dist/build/git-annex"))
|
(getcwd) "/dist/build/git-annex"))
|
||||||
(with-directory-excursion "dist/build/git-annex"
|
(when tests?
|
||||||
(symlink "git-annex" "git-annex-shell"))
|
(with-directory-excursion "dist/build/git-annex"
|
||||||
(invoke "git-annex" "test")
|
(symlink "git-annex" "git-annex-shell"))
|
||||||
#t))
|
(invoke "git-annex" "test"))))
|
||||||
(add-after 'check 'unpatch-shell-and-rebuild
|
(add-after 'check 'unpatch-shell-and-rebuild
|
||||||
(lambda args
|
(lambda args
|
||||||
;; Undo `patch-shell-for-tests'.
|
;; Undo `patch-shell-for-tests'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user