aboutsummaryrefslogtreecommitdiff
path: root/tests/store.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-01-14 14:25:58 +0100
committerLudovic Courtès <ludo@gnu.org>2015-01-14 14:25:58 +0100
commit023d9892c0411adb523e6bc8337be3e7e94e606f (patch)
treed19588bf31c79f6d875c3f0df7b683fc38d05860 /tests/store.scm
parente87f0591f3117ed61285f33c7cc3548f72e551ad (diff)
downloadpatches-023d9892c0411adb523e6bc8337be3e7e94e606f.tar
patches-023d9892c0411adb523e6bc8337be3e7e94e606f.tar.gz
store: Add 'store-lower'.
* guix/store.scm (store-lower): New procedure. * tests/store.scm ("store-lower"): New test.
Diffstat (limited to 'tests/store.scm')
-rw-r--r--tests/store.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/store.scm b/tests/store.scm
index cb5370d5cc..f43fcb14d0 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -595,6 +595,12 @@ Deriver: ~a~%"
(null? (valid-derivers %store file))
(null? (referrers %store file))))))
+(test-equal "store-lower"
+ "Lowered."
+ (let* ((add (store-lower text-file))
+ (file (add %store "foo" "Lowered.")))
+ (call-with-input-file file get-string-all)))
+
(test-end "store")