diff options
Diffstat (limited to 'tests/store.scm')
-rw-r--r-- | tests/store.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/store.scm b/tests/store.scm index 1ff6aa05c2..c90fd3fed9 100644 --- a/tests/store.scm +++ b/tests/store.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +21,8 @@ #:use-module (guix store) #:use-module (guix utils) #:use-module (guix base32) + #:use-module (guix packages) + #:use-module (guix derivations) #:use-module (gnu packages bootstrap) #:use-module (ice-9 match) #:use-module (srfi srfi-1) @@ -77,6 +79,17 @@ (> freed 0) (not (file-exists? p)))))) +(test-assert "no substitutes" + (let* ((s (open-connection)) + (d1 (package-derivation s %bootstrap-guile (%current-system))) + (d2 (package-derivation s %bootstrap-glibc (%current-system))) + (o (map derivation-path->output-path (list d1 d2)))) + (set-build-options s #:use-substitutes? #f) + (and (not (has-substitutes? s d1)) + (not (has-substitutes? s d2)) + (null? (substitutable-paths s o)) + (null? (substitutable-path-info s o))))) + (test-end "store") |