about summary refs log tree commit diff
path: root/tests/multiple-outputs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple-outputs.sh')
-rw-r--r--tests/multiple-outputs.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh
index dadd2e25f6b6..d4185c55bcc8 100644
--- a/tests/multiple-outputs.sh
+++ b/tests/multiple-outputs.sh
@@ -5,3 +5,14 @@ echo "Testing multiple outputs..."
 outPath=$(nix-build multiple-outputs.nix -A b)
 echo "output path is $outPath"
 [ "$(cat "$outPath"/file)" = "success" ]
+
+# Make sure that nix-build works on derivations with multiple outputs.
+nix-build multiple-outputs.nix -A a.first
+
+# Cyclic outputs should be rejected.
+if nix-build multiple-outputs.nix -A cyclic; then
+    echo "Cyclic outputs incorrectly accepted!"
+    exit 1
+fi
+
+clearStore