gnu: bear: Respect TESTS?.

* gnu/packages/build-tools.scm (bear)[arguments]: Accept and respect a
TESTS? keyword in the 'check phase.
This commit is contained in:
Tobias Geerinckx-Rice 2021-12-19 00:31:34 +01:00
parent de01d08bdf
commit 9c426e19cf
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -123,10 +123,11 @@ (define-public bear
(add-before 'check 'set-build-environment (add-before 'check 'set-build-environment
(lambda _ (lambda _
(setenv "CC" "gcc"))) (setenv "CC" "gcc")))
;; TODO: Test Configuration is Incomplete
(replace 'check (replace 'check
(lambda _ ;; TODO: Test configuration is incomplete.
(invoke "ctest")))))) (lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "ctest")))))))
(inputs (inputs
`(("c-ares" ,c-ares) `(("c-ares" ,c-ares)
("fmt" ,fmt) ("fmt" ,fmt)