1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 06:53:54 +02:00

Add a test for the binary cache substituter

This commit is contained in:
Eelco Dolstra 2012-07-26 17:13:14 -04:00
parent 7861260a5f
commit 609586a16d
2 changed files with 21 additions and 1 deletions

19
tests/binary-cache.sh Normal file
View file

@ -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