1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

* Refactor a bit so that more tests can be added.

This commit is contained in:
Eelco Dolstra 2011-12-20 17:01:02 +00:00
parent b5363810bb
commit 46e42c92c1
5 changed files with 26 additions and 36 deletions

View file

@ -2,14 +2,6 @@ source common.sh
echo "Testing multiple outputs..."
drvPath=$(nix-instantiate multiple-outputs.nix)
echo "derivation is $drvPath"
outPath=$(nix-store -rvv "$drvPath")
outPath=$(nix-build multiple-outputs.nix -A b)
echo "output path is $outPath"
text=$(cat "$outPath"/file)
if test "$text" != "success"; then exit 1; fi
[ "$(cat "$outPath"/file)" = "success" ]