gnu: snap-aligner: Run tests conditionally.

* gnu/packages/bioinformatics.scm (snap-aligner)[arguments]: Respect TESTS?
option.
This commit is contained in:
Ricardo Wurmus 2021-12-08 12:20:09 +01:00
parent 298a8d0b89
commit 7c58677a29
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -7189,7 +7189,9 @@ (define-public snap-aligner
'(#:phases
(modify-phases %standard-phases
(delete 'configure)
(replace 'check (lambda _ (invoke "./unit_tests") #t))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "./unit_tests"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))