about summary refs log tree commit diff
path: root/tests/fixed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixed.sh')
-rw-r--r--tests/fixed.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/fixed.sh b/tests/fixed.sh
new file mode 100644
index 000000000000..fc37e40f4210
--- /dev/null
+++ b/tests/fixed.sh
@@ -0,0 +1,18 @@
+source common.sh
+
+drvs=$($nixinstantiate fixed.nix -A good)
+echo $drvs
+$nixstore -r $drvs
+
+drvs=$($nixinstantiate fixed.nix -A good2)
+echo $drvs
+$nixstore -r $drvs
+
+drvs=$($nixinstantiate fixed.nix -A bad)
+echo $drvs
+if $nixstore -r $drvs; then false; fi
+
+if $nixinstantiate fixed.nix -A reallyBad; then false; fi
+
+# While we're at it, check attribute selection a bit more.
+test $($nixinstantiate fixed.nix -A good.1 | wc -l) = 1