Test "nix-env -qas" with the binary cache substituter
This commit is contained in:
parent
73acb8b836
commit
e6ab52cdd1
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ source common.sh
|
||||||
|
|
||||||
clearStore
|
clearStore
|
||||||
|
|
||||||
|
# Create the binary cache.
|
||||||
cacheDir=$TEST_ROOT/binary-cache
|
cacheDir=$TEST_ROOT/binary-cache
|
||||||
rm -rf $cacheDir
|
rm -rf $cacheDir
|
||||||
|
|
||||||
|
@ -9,10 +10,12 @@ outPath=$(nix-build dependencies.nix --no-out-link)
|
||||||
|
|
||||||
nix-push --dest $cacheDir $outPath
|
nix-push --dest $cacheDir $outPath
|
||||||
|
|
||||||
|
# Check that downloading works.
|
||||||
clearStore
|
clearStore
|
||||||
|
|
||||||
rm -f $NIX_STATE_DIR/binary-cache*
|
rm -f $NIX_STATE_DIR/binary-cache*
|
||||||
|
|
||||||
|
NIX_BINARY_CACHES="file://$cacheDir" nix-env -f dependencies.nix -qas \* | grep -- "--S"
|
||||||
|
|
||||||
NIX_BINARY_CACHES="file://$cacheDir" nix-store -r $outPath
|
NIX_BINARY_CACHES="file://$cacheDir" nix-store -r $outPath
|
||||||
|
|
||||||
nix-store --check-validity $outPath
|
nix-store --check-validity $outPath
|
||||||
|
|
Loading…
Reference in a new issue