diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-03-06 21:53:28 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-06 23:16:35 +0100 |
commit | ef8de9852eeb9f9ce8e01a2a4f60a057b890b94a (patch) | |
tree | 5b66a5003072f0b8cf345a6aec016e3c792cba1f /tests/derivations.scm | |
parent | 322bb53c7aca0855833d07a7ea55ae243235f285 (diff) | |
download | gnu-guix-ef8de9852eeb9f9ce8e01a2a4f60a057b890b94a.tar gnu-guix-ef8de9852eeb9f9ce8e01a2a4f60a057b890b94a.tar.gz |
tests: Disable grafting by default for most tests.
This allows tests to run as expected even in the presence of
replacements among the bootstrap packages, such as Perl (commit
d8173f21f7b4e3cb83541b8fa70621d2b6d4ce1c).
* tests/cpan.scm: Add (%graft? #f).
* tests/derivations.scm: Likewise.
* tests/graph.scm: Likewise.
* tests/monads.scm: Likewise.
* tests/profiles.scm: Likewise.
* tests/gexp.scm: Likewise.
("gexp->derivation vs. grafts"): Explicitly reenable grafting before,
and disable it after, using 'set-grafting'.
Diffstat (limited to 'tests/derivations.scm')
-rw-r--r-- | tests/derivations.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/derivations.scm b/tests/derivations.scm index 9b53019cc5..3c35218040 100644 --- a/tests/derivations.scm +++ b/tests/derivations.scm @@ -18,6 +18,7 @@ (define-module (test-derivations) #:use-module (guix derivations) + #:use-module (guix grafts) #:use-module (guix store) #:use-module (guix utils) #:use-module (guix hash) @@ -44,6 +45,9 @@ (define %store (open-connection-for-tests)) +;; Globally disable grafts because they can trigger early builds. +(%graft? #f) + (define (bootstrap-binary name) (let ((bin (search-bootstrap-binary name (%current-system)))) (and %store @@ -71,6 +75,7 @@ (lambda (e1 e2) (string<? (car e1) (car e2))))) + (test-begin "derivations") (test-assert "parse & export" |