gnu: terminology: Respect #:tests? flag.

* gnu/packages/enlightenment.scm (terminology)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2022-01-06 21:28:42 +02:00
parent c24ffc3aae
commit 57bf228b66
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -235,11 +235,12 @@ (define-public terminology
;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
(lambda _ (setenv "HOME" "/tmp")))
(replace 'check
(lambda _
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion
(string-append "../" ,name "-" ,version "/tests")
(invoke "sh" "run_tests.sh" "--verbose"
"-t" "../../build/src/bin/tytest"))))
"-t" "../../build/src/bin/tytest")))))
(add-after 'install 'remove-test-binary
(lambda* (#:key outputs #:allow-other-keys)
;; This file is not meant to be installed.