Archived
1
0
Fork 0

gnu: indi: Respect #:tests?.

* gnu/packages/astronomy.scm (indi)[arguments]: Respect #:tests? in the
'check phase.
This commit is contained in:
Tobias Geerinckx-Rice 2021-05-04 13:35:54 +02:00
parent 7f540e3ce0
commit 9a40c1d5bb
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -817,10 +817,11 @@ provide you with detailed information about each pass.")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "test" (with-directory-excursion "test"
(invoke "ctest")) (invoke "ctest"))
#t)) #t)))
(add-before 'install 'set-install-directories (add-before 'install 'set-install-directories
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))