[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/21: gnu: lsof: Run tests.
From: |
Tobias Geerinckx-Rice |
Subject: |
16/21: gnu: lsof: Run tests. |
Date: |
Mon, 19 Feb 2018 00:07:26 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 16cb3b8fe00500fc5d434cd761afbfb594cfd4c4
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Mon Feb 19 02:07:36 2018 +0100
gnu: lsof: Run tests.
* gnu/packages/lsof.scm (lsof)[arguments]: Remove untrue #:TESTS?.
Add ‘disable-failing-tests’ and ‘check’ phases to run them.
---
gnu/packages/lsof.scm | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm
index 7f365f3..098242d 100644
--- a/gnu/packages/lsof.scm
+++ b/gnu/packages/lsof.scm
@@ -57,8 +57,7 @@
(build-system gnu-build-system)
(native-inputs `(("perl" ,perl)))
(arguments
- `(#:tests? #f ; no test target
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(replace 'unpack
(lambda* (#:key source #:allow-other-keys)
@@ -75,6 +74,23 @@
(lambda _
(substitute* "Makefile"
(("`date`") "`date address@hidden"))))
+ (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
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- 09/21: gnu: perl-xml-sax: Update to 1.00., (continued)
- 09/21: gnu: perl-xml-sax: Update to 1.00., Tobias Geerinckx-Rice, 2018/02/19
- 10/21: gnu: dvdstyler: Update to 3.0.4., Tobias Geerinckx-Rice, 2018/02/19
- 14/21: gnu: lsof: Update phase style., Tobias Geerinckx-Rice, 2018/02/19
- 11/21: gnu: lsof: Replace dead mirror., Tobias Geerinckx-Rice, 2018/02/19
- 21/21: gnu: iverilog: Use Texinfo in description., Tobias Geerinckx-Rice, 2018/02/19
- 13/21: gnu: lsof: Make perl a native input., Tobias Geerinckx-Rice, 2018/02/19
- 03/21: gnu: awscli: Update to 1.14.41., Tobias Geerinckx-Rice, 2018/02/19
- 19/21: gnu: nyacc: Update to 0.83.3., Tobias Geerinckx-Rice, 2018/02/19
- 18/21: gnu: nasm: Update to 2.13.03., Tobias Geerinckx-Rice, 2018/02/19
- 12/21: gnu: lsof: Factorise source URIs., Tobias Geerinckx-Rice, 2018/02/19
- 16/21: gnu: lsof: Run tests.,
Tobias Geerinckx-Rice <=