gnu: lsof: Run tests.
* gnu/packages/lsof.scm (lsof)[arguments]: Remove untrue #:TESTS?. Add ‘disable-failing-tests’ and ‘check’ phases to run them.
This commit is contained in:
parent
c2799070ca
commit
16cb3b8fe0
|
@ -57,8 +57,7 @@
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs `(("perl" ,perl)))
|
(native-inputs `(("perl" ,perl)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no test target
|
`(#:phases
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'unpack
|
(replace 'unpack
|
||||||
(lambda* (#:key source #:allow-other-keys)
|
(lambda* (#:key source #:allow-other-keys)
|
||||||
|
@ -75,6 +74,23 @@
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("`date`") "`date --date=@1`"))))
|
(("`date`") "`date --date=@1`"))))
|
||||||
|
(add-before 'check 'disable-failing-tests
|
||||||
|
(lambda _
|
||||||
|
(substitute* "tests/Makefile"
|
||||||
|
;; Fails with ‘ERROR!!! client gethostbyaddr() failure’.
|
||||||
|
(("(STDTST=.*) LTsock" _ prefix) prefix)
|
||||||
|
;; Fails without access to a remote NFS server.
|
||||||
|
(("(OPTTST=.*) LTnfs" _ prefix) prefix))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(with-directory-excursion "tests"
|
||||||
|
;; Tests refuse to run on ‘unvalidated’ platforms.
|
||||||
|
(make-file-writable "TestDB")
|
||||||
|
(invoke "./Add2TestDB")
|
||||||
|
|
||||||
|
;; The ‘standard’ tests suggest running ‘optional’ ones as well.
|
||||||
|
(invoke "make" "standard" "optional")
|
||||||
|
#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")))
|
||||||
|
|
Loading…
Reference in New Issue