diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-01-02T10·45+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-01-02T10·45+0100 |
commit | 82248abd8f2967f72b965c0ba7774815068c4962 (patch) | |
tree | 4ed0f194f72eafc6ff9318fdbf95838bbc78bb82 /tests | |
parent | 12f9129f60651793e319171236e006aecfdc34be (diff) |
Add a test for incomplete closures in the binary cache
Issue #77.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/binary-cache.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index 813e85cbf9ac..7a3dc04c93b7 100644 --- a/tests/binary-cache.sh +++ b/tests/binary-cache.sh @@ -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 |