Test executables in NARs
This commit is contained in:
parent
91f25f0510
commit
3d0a9ec825
2 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,8 @@ nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* |
|
||||||
|
|
||||||
nix-store --option binary-caches "file://$cacheDir" -r $outPath
|
nix-store --option binary-caches "file://$cacheDir" -r $outPath
|
||||||
|
|
||||||
|
[ -x $outPath/program ]
|
||||||
|
|
||||||
|
|
||||||
# But with the right configuration, "nix-env -qas" should also work.
|
# But with the right configuration, "nix-env -qas" should also work.
|
||||||
clearStore
|
clearStore
|
||||||
|
|
|
@ -9,4 +9,8 @@ ln -s $input2 $out/input-2
|
||||||
# Self-reference.
|
# Self-reference.
|
||||||
ln -s $out $out/self
|
ln -s $out $out/self
|
||||||
|
|
||||||
|
# Executable.
|
||||||
|
echo program > $out/program
|
||||||
|
chmod +x $out/program
|
||||||
|
|
||||||
echo FOO
|
echo FOO
|
||||||
|
|
Loading…
Reference in a new issue