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-21T14·42+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-12-21T14·42+0000
commit4be5a2c096083234e62117ce6016c4c9aa573aff (patch)
tree42530abd2150e18c5ed8d2b955b3efcf10c8832c /tests/multiple-outputs.sh
parent179409b9112ee9d9f858a124e0b109a46fe835c9 (diff)
* Add a test for unsafeDiscardOutputDependency. Not really related to
  multiple outputs, but good to have anyway.

Diffstat (limited to 'tests/multiple-outputs.sh')
-rw-r--r--tests/multiple-outputs.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh
index aa328fdbc689..e95c6b404632 100644
--- a/tests/multiple-outputs.sh
+++ b/tests/multiple-outputs.sh
@@ -14,6 +14,12 @@ drvPath2=$(nix-instantiate multiple-outputs.nix -A c)
 grep -q 'multiple-outputs-a.drv",\["first","second"\]' $drvPath
 grep -q 'multiple-outputs-b.drv",\["out"\]' $drvPath
 
+# While we're at it, test the ‘unsafeDiscardOutputDependency’ primop.
+outPath=$(nix-build multiple-outputs.nix -A d)
+drvPath=$(cat $outPath/drv)
+outPath=$(nix-store -q $drvPath)
+! [ -e "$outPath" ]
+
 # Do a build of something that depends on a derivation with multiple
 # outputs.
 echo "building b..."