diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-26 17:46:45 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-26 17:46:45 +0100 |
commit | 69c88f5028b4b2d5d2500dc4f631d77ac1d2c5fd (patch) | |
tree | 0c4ddda9d51933f86fa5199731a0419edfb554f7 /tests | |
parent | 408a7bfac1f4282ff6647696dfbc7988eed3a2ca (diff) |
Fix the multiple-outputs test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/multiple-outputs.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh index 29af691ea..ac622a7b4 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) |