From c642441beb504278819e43914516b5eda30f2c15 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Apr 2013 12:43:28 +0200 Subject: Test NAR info caching --- tests/binary-cache.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/binary-cache.sh') 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 -- cgit 1.4.1