aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-04-23 12:43:28 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-04-23 12:43:28 +0200
commitc642441beb504278819e43914516b5eda30f2c15 (patch)
treefef60b9b3e1521342e6f944cbfd3e2057647a47a /tests
parent05420e788315f04212fe936313b3ff7b580a206c (diff)
Test NAR info caching
Diffstat (limited to 'tests')
-rw-r--r--tests/binary-cache.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh
index 2e38a9d93..b02456220 100644
--- a/tests/binary-cache.sh
+++ b/tests/binary-cache.sh
@@ -5,7 +5,7 @@ clearManifests
# Create the binary cache.
cacheDir=$TEST_ROOT/binary-cache
-rm -rf $cacheDir
+rm -rf "$cacheDir"
outPath=$(nix-build dependencies.nix --no-out-link)
@@ -17,6 +17,8 @@ nix-push --dest $cacheDir $outPath
clearStore
rm -f $NIX_STATE_DIR/binary-cache*
+export _NIX_CACHE_FILE_URLS=1
+
nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "---"
nix-store --option binary-caches "file://$cacheDir" -r $outPath