From 78d84f5631eb1d0e4b665dbaacbbb1669ba899f7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Mar 2006 18:26:21 +0000 Subject: * Tests for fixed-output derivations (and attribute selection, incidentally). --- tests/fixed.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/fixed.sh (limited to 'tests/fixed.sh') 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 -- cgit 1.4.1