aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-09-28 15:36:45 +0000
committerng0 <ng0@infotropique.org>2017-09-28 15:36:45 +0000
commita9946dabcb8ef0e13124930e70bb9060ad04eb5e (patch)
tree3a00b99a2ef36572dbb03bc565c237d5baa6dbf1
parent87ecda14a0c2a643c4f814b6603ae2cad207a218 (diff)
downloadgnunet-a9946dabcb8ef0e13124930e70bb9060ad04eb5e.tar.gz
gnunet-a9946dabcb8ef0e13124930e70bb9060ad04eb5e.zip
contrib: guix: Add gnunetg-test.
Build with testsuite but without experimental features.
-rw-r--r--contrib/packages/guix/packages/gnunet/packages/gnunet.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/contrib/packages/guix/packages/gnunet/packages/gnunet.scm b/contrib/packages/guix/packages/gnunet/packages/gnunet.scm
index cb30572a1..fbc132d78 100644
--- a/contrib/packages/guix/packages/gnunet/packages/gnunet.scm
+++ b/contrib/packages/guix/packages/gnunet/packages/gnunet.scm
@@ -333,6 +333,47 @@
333 (zero? (system* "make" "check")))))))) 333 (zero? (system* "make" "check"))))))))
334 (synopsis "gnunet, full git with tests enabled with parallel tests"))) 334 (synopsis "gnunet, full git with tests enabled with parallel tests")))
335 335
336(define-public gnunetg-test
337 (package
338 (inherit gnunetg)
339 (name "gnunetg-test")
340 (arguments
341 `(#:configure-flags
342 (list (string-append "--with-nssdir=" %output "/lib")
343 "--enable-gcc-hardening"
344 "--enable-linker-hardening"
345
346 ;;"--enable-poisoning"
347 ;;"--enable-sanitizer"
348 "--enable-logging=verbose"
349 "CFLAGS=-ggdb -O0")
350 ;; #:parallel-tests? #f ; parallel building seems to fail
351 ;;#:tests? #f ; fail: test_gnunet_statistics.py
352 #:phases
353 ;; swap check and install phases and set paths to installed bin
354 (modify-phases %standard-phases
355 (add-after 'unpack 'patch-bin-sh
356 (lambda _
357 (substitute* "bootstrap"
358 (("contrib/pogen.sh") "sh contrib/pogen.sh"))
359 (for-each (lambda (f) (chmod f #o755))
360 (find-files "po" ""))
361 #t))
362 (add-after 'patch-bin-sh 'bootstrap
363 (lambda _
364 (zero? (system* "sh" "bootstrap"))))
365 (delete 'check)
366 ;; XXX: https://gnunet.org/bugs/view.php?id=4619
367 (add-after 'install 'set-path-for-check
368 (lambda* (#:key outputs #:allow-other-keys)
369 (let* ((out (assoc-ref outputs "out"))
370 (bin (string-append out "/bin"))
371 (lib (string-append out "/lib")))
372 (setenv "GNUNET_PREFIX" lib)
373 (setenv "PATH" (string-append (getenv "PATH") ":" bin))
374 (zero? (system* "make" "check"))))))))
375 (synopsis "gnunet, full git with tests enabled without experimental")))
376
336;; ... and one package to test the package with "parallel-tests? #f" 377;; ... and one package to test the package with "parallel-tests? #f"
337(define-public gnunetgftn 378(define-public gnunetgftn
338 (package 379 (package