GNU bug report logs - #26135
[PATCH] gnu: znc: Run test suite.

Previous Next

Package: guix-patches;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Fri, 17 Mar 2017 01:09:01 UTC

Severity: normal

Tags: patch

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: bug#26135: closed (Re: [PATCH] gnu: znc: Run test suite.)
Date: Mon, 20 Mar 2017 21:46:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#26135: [PATCH] gnu: znc: Run test suite.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 26135 <at> debbugs.gnu.org.

-- 
26135: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26135
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 26135-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: znc: Run test suite.
Date: Mon, 20 Mar 2017 22:46:43 +0100
[Message part 3 (text/plain, inline)]
Pushed as 500fc65b5bd28a8f222d2dbff7676ba3ee622f12.

[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: guix-patches <at> gnu.org
Subject: [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




This bug report was last modified 8 years and 156 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.