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:
parent
7861260a5f
commit
609586a16d
2 changed files with 21 additions and 1 deletions
19
tests/binary-cache.sh
Normal file
19
tests/binary-cache.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue