diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-04-23T10·43+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-04-23T10·43+0200 |
commit | c642441beb504278819e43914516b5eda30f2c15 (patch) | |
tree | fef60b9b3e1521342e6f944cbfd3e2057647a47a /tests | |
parent | 05420e788315f04212fe936313b3ff7b580a206c (diff) |
Test NAR info caching
Diffstat (limited to 'tests')
-rw-r--r-- | tests/binary-cache.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index 2e38a9d938b3..b02456220da3 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 |