about summary refs log tree commit diff
path: root/tests/binary-cache.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-02T10·45+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-02T10·45+0100
commit82248abd8f2967f72b965c0ba7774815068c4962 (patch)
tree4ed0f194f72eafc6ff9318fdbf95838bbc78bb82 /tests/binary-cache.sh
parent12f9129f60651793e319171236e006aecfdc34be (diff)
Add a test for incomplete closures in the binary cache
Issue #77.
Diffstat (limited to 'tests/binary-cache.sh')
-rw-r--r--tests/binary-cache.sh8
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