diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-26 17:13:14 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-26 17:13:14 -0400 |
commit | 609586a16de90f8964b9c494aad3c1526feb514f (patch) | |
tree | f981839375cf98dbf433af69f8e80962f69932b4 /tests/binary-cache.sh | |
parent | 7861260a5ff33689b1b8f7a89489f5d5e5e4dfcb (diff) |
Add a test for the binary cache substituter
Diffstat (limited to 'tests/binary-cache.sh')
-rw-r--r-- | tests/binary-cache.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh new file mode 100644 index 000000000..b4a3601ec --- /dev/null +++ b/tests/binary-cache.sh @@ -0,0 +1,19 @@ +source common.sh + +clearStore + +cacheDir=$TEST_ROOT/binary-cache +rm -rf $cacheDir + +outPath=$(nix-build dependencies.nix --no-out-link) + +nix-push --dest $cacheDir $outPath + +clearStore + +rm -f $NIX_STATE_DIR/binary-cache* + +NIX_BINARY_CACHES="file://$cacheDir" nix-store -r $outPath + +nix-store --check-validity $outPath +nix-store -qR $outPath | grep input-2 |