From 3d0a9ec8258fc2a6ec6a73e249aa38fbd03207d8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Feb 2014 18:59:01 +0100 Subject: Test executables in NARs --- tests/binary-cache.sh | 2 ++ tests/dependencies.builder0.sh | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index 45e67bee7..6f0c36f63 100644 --- a/tests/binary-cache.sh +++ b/tests/binary-cache.sh @@ -21,6 +21,8 @@ nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | nix-store --option binary-caches "file://$cacheDir" -r $outPath +[ -x $outPath/program ] + # But with the right configuration, "nix-env -qas" should also work. clearStore diff --git a/tests/dependencies.builder0.sh b/tests/dependencies.builder0.sh index b02108fe6..c37bf909a 100644 --- a/tests/dependencies.builder0.sh +++ b/tests/dependencies.builder0.sh @@ -9,4 +9,8 @@ ln -s $input2 $out/input-2 # Self-reference. ln -s $out $out/self +# Executable. +echo program > $out/program +chmod +x $out/program + echo FOO -- cgit v1.2.3