gnu: lsof: Respect #:tests?.
* gnu/packages/lsof.scm (lsof)[arguments]: The 'check phase takes and respects a TESTS? keyword.
This commit is contained in:
parent
518b21e058
commit
70303d073a
1 changed files with 9 additions and 8 deletions
|
@ -79,15 +79,16 @@
|
||||||
(("(OPTTST=.*) LTnfs" _ prefix) prefix))
|
(("(OPTTST=.*) LTnfs" _ prefix) prefix))
|
||||||
#t))
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(with-directory-excursion "tests"
|
(with-directory-excursion "tests"
|
||||||
;; Tests refuse to run on ‘unvalidated’ platforms.
|
;; Tests refuse to run on ‘unvalidated’ platforms.
|
||||||
(make-file-writable "TestDB")
|
(make-file-writable "TestDB")
|
||||||
(invoke "./Add2TestDB")
|
(invoke "./Add2TestDB")
|
||||||
|
|
||||||
;; The ‘standard’ tests suggest running ‘optional’ ones as well.
|
;; The ‘standard’ tests suggest running ‘optional’ ones as well.
|
||||||
(invoke "make" "standard" "optional")
|
(invoke "make" "standard" "optional")))
|
||||||
#t)))
|
#t))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
|
Reference in a new issue