Add a test for incomplete closures in the binary cache

Issue #77.
This commit is contained in:
Eelco Dolstra 2013-01-02 11:45:23 +01:00
parent 12f9129f60
commit 82248abd8f

View file

@ -37,3 +37,11 @@ nix-store --option binary-caches "file://$cacheDir" -r $outPath
nix-store --check-validity $outPath
nix-store -qR $outPath | grep input-2
# Test whether building works if the binary cache contains an
# incomplete closure.
clearStore
rm $(grep -l "StorePath:.*dependencies-input-2" $cacheDir/*.narinfo)
nix-build --option binary-caches "file://$cacheDir" dependencies.nix -o $TEST_ROOT/result