about summary refs log tree commit diff
path: root/tests/multiple-outputs.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-26T16·46+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-26T16·46+0100
commit69c88f5028b4b2d5d2500dc4f631d77ac1d2c5fd (patch)
tree0c4ddda9d51933f86fa5199731a0419edfb554f7 /tests/multiple-outputs.sh
parent408a7bfac1f4282ff6647696dfbc7988eed3a2ca (diff)
Fix the multiple-outputs test
Diffstat (limited to 'tests/multiple-outputs.sh')
-rw-r--r--tests/multiple-outputs.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh
index 29af691ead6f..ac622a7b4eaf 100644
--- a/tests/multiple-outputs.sh
+++ b/tests/multiple-outputs.sh
@@ -29,6 +29,9 @@ echo "output path is $outPath"
 
 # Test nix-build on a derivation with multiple outputs.
 nix-build multiple-outputs.nix -A a -o $TEST_ROOT/result
+[ -e $TEST_ROOT/result-first ]
+! [ -e $TEST_ROOT/result-second ]
+nix-build multiple-outputs.nix -A a.all -o $TEST_ROOT/result
 [ "$(cat $TEST_ROOT/result-first/file)" = "first" ]
 [ "$(cat $TEST_ROOT/result-second/file)" = "second" ]
 [ "$(cat $TEST_ROOT/result-second/link/file)" = "first" ]
@@ -37,7 +40,7 @@ hash1=$(nix-store -q --hash $TEST_ROOT/result-second)
 # Delete one of the outputs and rebuild it.  This will cause a hash
 # rewrite.
 nix-store --delete $TEST_ROOT/result-second --ignore-liveness
-nix-build multiple-outputs.nix -A a -o $TEST_ROOT/result
+nix-build multiple-outputs.nix -A a.all -o $TEST_ROOT/result
 [ "$(cat $TEST_ROOT/result-second/file)" = "second" ]
 [ "$(cat $TEST_ROOT/result-second/link/file)" = "first" ]
 hash2=$(nix-store -q --hash $TEST_ROOT/result-second)