gnu: praat: Honor #:tests?.

* gnu/packages/language.scm (praat)[arguments]: Check #:tests? in 'check
phase.
This commit is contained in:
Ludovic Courtès 2023-08-07 16:11:01 +02:00
parent 67d480d4a0
commit f1badc9406
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -877,9 +877,10 @@ (define-public praat
(copy-file "makefiles/makefile.defs.linux.pulse"
"makefile.defs")))
(replace 'check
(lambda _
(invoke "./praat" "--run"
"test/runAllTests_batch.praat")))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "./praat" "--run"
"test/runAllTests_batch.praat"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))