From 82248abd8f2967f72b965c0ba7774815068c4962 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Jan 2013 11:45:23 +0100 Subject: [PATCH] Add a test for incomplete closures in the binary cache Issue #77. --- tests/binary-cache.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index 813e85cbf..7a3dc04c9 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