From 609586a16de90f8964b9c494aad3c1526feb514f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 Jul 2012 17:13:14 -0400 Subject: Add a test for the binary cache substituter --- tests/binary-cache.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/binary-cache.sh (limited to 'tests/binary-cache.sh') diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh new file mode 100644 index 0000000000..b4a3601ece --- /dev/null +++ b/tests/binary-cache.sh @@ -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 -- cgit 1.4.1