[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: znc: Run test suite.
From: |
Tobias Geerinckx-Rice |
Subject: |
02/06: gnu: znc: Run test suite. |
Date: |
Mon, 20 Mar 2017 17:43:23 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 500fc65b5bd28a8f222d2dbff7676ba3ee622f12
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Fri Mar 17 02:05:00 2017 +0100
gnu: znc: Run test suite.
* gnu/packages/messaging.scm (znc)[arguments]: Enable tests. Add an
‘unpack-googletest’ phase and add ‘--with-gtest=’ to #:configure-flags.
[native-inputs]: Add googletest source.
---
gnu/packages/messaging.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 85c0235..df56ac0 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -10,6 +10,7 @@
;;; Copyright © 2016, 2017 Clément Lassieur <address@hidden>
;;; Copyright © 2017 Mekeor Melire <address@hidden>
;;; Copyright © 2017 Arun Isaac <address@hidden>
+;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -399,12 +400,23 @@ compromised.")
"1jia6kq6bp8yxfj02d5vj9vqb4pylqcldspyjj6iz82kkka2a0ig"))))
(build-system gnu-build-system)
(arguments
- '(#:tests? #f ; tries to download GoogleTest with wget
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'unpack-googletest
+ (lambda* (#:key inputs #:allow-other-keys)
+ (zero? (system* "tar" "xf"
+ (assoc-ref inputs "googletest-source"))))))
#:configure-flags '("--enable-python"
"--enable-perl"
- "--enable-cyrus")))
+ "--enable-cyrus"
+ ,(string-append "--with-gtest="
+ "googletest-release-"
+ (package-version googletest)
+ "/googletest"))
+ #:test-target "test"))
(native-inputs
- `(("pkg-config" ,pkg-config)
+ `(("googletest-source" ,(package-source googletest))
+ ("pkg-config" ,pkg-config)
("perl" ,perl)
("python" ,python)))
(inputs
- branch master updated (e2c4fe7 -> 6809d93), Tobias Geerinckx-Rice, 2017/03/20
- 01/06: gnu: simple-scan: Update to 3.24.0., Tobias Geerinckx-Rice, 2017/03/20
- 04/06: gnu: ngircd: Use ‘modify-phases’ syntax., Tobias Geerinckx-Rice, 2017/03/20
- 05/06: gnu: ngircd: Use the phrase ‘IRC’ in its description., Tobias Geerinckx-Rice, 2017/03/20
- 06/06: gnu: ngircd: Use HTTPS., Tobias Geerinckx-Rice, 2017/03/20
- 02/06: gnu: znc: Run test suite.,
Tobias Geerinckx-Rice <=
- 03/06: gnu: ngircd: Update to 24., Tobias Geerinckx-Rice, 2017/03/20