about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/binary-cache.sh2
-rw-r--r--tests/dependencies.builder0.sh4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh
index 45e67bee715f..6f0c36f6300f 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 b02108fe6b48..c37bf909a5f9 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