diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26T17·59+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26T17·59+0100 |
commit | 3d0a9ec8258fc2a6ec6a73e249aa38fbd03207d8 (patch) | |
tree | 18169aea9beb48723fea56bcaffd13a4c783622f | |
parent | 91f25f0510db32d627bf5ed7d4067b90e37f2f86 (diff) |
Test executables in NARs
-rw-r--r-- | tests/binary-cache.sh | 2 | ||||
-rw-r--r-- | tests/dependencies.builder0.sh | 4 |
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 |