[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26135: [PATCH] gnu: znc: Run test suite.
From: |
Tobias Geerinckx-Rice |
Subject: |
bug#26135: [PATCH] gnu: znc: Run test suite. |
Date: |
Fri, 17 Mar 2017 02:09:29 +0100 |
* 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 | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 7aa7b7b..57a62e5 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -398,12 +398,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"))))))
+ #:test-target "test"
#:configure-flags '("--enable-python"
"--enable-perl"
- "--enable-cyrus")))
+ "--enable-cyrus"
+ ,(string-append "--with-gtest="
+ "googletest-release-"
+ (package-version googletest)
+ "/googletest"))))
(native-inputs
- `(("pkg-config" ,pkg-config)
+ `(("googletest-source" ,(package-source googletest))
+ ("pkg-config" ,pkg-config)
("perl" ,perl)
("python" ,python)))
(inputs
--
2.9.3
- bug#26135: [PATCH] gnu: znc: Run test suite.,
Tobias Geerinckx-Rice <=