aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/store.scm36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/store.scm b/tests/store.scm
index 9c25adf5e9..3266fa7a82 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -308,42 +308,6 @@
(null? (references %store t1))
(null? (referrers %store t2)))))
-(test-assert "references/substitutes missing reference info"
- (with-store s
- (set-build-options s #:use-substitutes? #f)
- (guard (c ((store-protocol-error? c) #t))
- (let* ((b (add-to-store s "bash" #t "sha256"
- (search-bootstrap-binary "bash"
- (%current-system))))
- (d (derivation s "the-thing" b '("--help")
- #:inputs `((,b)))))
- (references/substitutes s (list (derivation->output-path d) b))
- #f))))
-
-(test-assert "references/substitutes with substitute info"
- (with-store s
- (set-build-options s #:use-substitutes? #t)
- (let* ((t1 (add-text-to-store s "random1" (random-text)))
- (t2 (add-text-to-store s "random2" (random-text)
- (list t1)))
- (t3 (add-text-to-store s "build" "echo -n $t2 > $out"))
- (b (add-to-store s "bash" #t "sha256"
- (search-bootstrap-binary "bash"
- (%current-system))))
- (d (derivation s "the-thing" b `("-e" ,t3)
- #:inputs `((,b) (,t3) (,t2))
- #:env-vars `(("t2" . ,t2))))
- (o (derivation->output-path d)))
- (with-derivation-narinfo d
- (sha256 => (gcrypt:sha256 (string->utf8 t2)))
- (references => (list t2))
-
- (equal? (references/substitutes s (list o t3 t2 t1))
- `((,t2) ;refs of O
- () ;refs of T3
- (,t1) ;refs of T2
- ())))))) ;refs of T1
-
(test-equal "substitutable-path-info when substitutes are turned off"
'()
(with-store s
3733808e279aeefa585052db72695e59c'>gnu: bash-completion: Update to 2.4....Efraim Flashner 2016-10-02gnu: bash-minimal: Remove 'move-development-files' phase....Ludovic Courtès 2016-10-01gnu: bash-minimal: Disable loadable module support....Ludovic Courtès 2016-10-01gnu: bash: Update to 4.4....Ludovic Courtès 2016-10-01gnu: bash-static: Use 'modify-phases'....Ludovic Courtès 2016-08-09gnu: bash-completion: Update to 2.3. Update the patch....Tomáš Čech 2016-08-09gnu: bash-completion: Modify to modify-phases....Tomáš Čech 2016-05-07gnu: Add bash-tap....Roel Janssen 2016-04-14gnu: packages: Use 'search-patches' everywhere....Alex Kost 2015-12-15gnu: bash: Add "doc" output....Ludovic Courtès 2015-12-15gnu: bash: Update to patch level 42....Ludovic Courtès 2015-12-12Merge branch 'master' into core-updatesLudovic Courtès 2015-11-13gnu: Adjust formatting as recommended by 'guix lint'....宋文武 2015-10-21gnu: bash: Use 'install-file' instead of 'mkdir-p' and 'copy-file'....Leo Famulari 2015-10-21gnu: bash: Install more headers in "include" output....Leo Famulari