From 46e42c92c1444e1dd3aec871b3750bcd7391f60e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Dec 2011 17:01:02 +0000 Subject: * Refactor a bit so that more tests can be added. --- tests/multiple-outputs.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'tests/multiple-outputs.sh') 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" ] -- cgit 1.4.1