diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-12-20T17·01+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-12-20T17·01+0000 |
commit | 46e42c92c1444e1dd3aec871b3750bcd7391f60e (patch) | |
tree | 1713c3f6a57f264c54b687d5a3f93afaa1aed021 /tests/multiple-outputs.sh | |
parent | b5363810bbeea37df34a5cb0051e05161630a510 (diff) |
* Refactor a bit so that more tests can be added.
Diffstat (limited to 'tests/multiple-outputs.sh')
-rw-r--r-- | tests/multiple-outputs.sh | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh index d3ebdbea3498..dadd2e25f6b6 100644 --- a/tests/multiple-outputs.sh +++ b/tests/multiple-outputs.sh @@ -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" ] |