about summary refs log tree commit diff
path: root/tests/multiple-outputs.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-12-20T17·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-12-20T17·01+0000
commit46e42c92c1444e1dd3aec871b3750bcd7391f60e (patch)
tree1713c3f6a57f264c54b687d5a3f93afaa1aed021 /tests/multiple-outputs.sh
parentb5363810bbeea37df34a5cb0051e05161630a510 (diff)
* Refactor a bit so that more tests can be added.
Diffstat (limited to 'tests/multiple-outputs.sh')
-rw-r--r--tests/multiple-outputs.sh12
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" ]