diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-01 18:26:21 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-01 18:26:21 +0000 |
commit | 78d84f5631eb1d0e4b665dbaacbbb1669ba899f7 (patch) | |
tree | 2d1f8d57598b0724be689dadb83df132c98f12e6 /tests/fixed.sh | |
parent | 2167bf6b72dde2bb574ac72da0fad145504a4d3f (diff) |
* Tests for fixed-output derivations (and attribute selection, incidentally).
Diffstat (limited to 'tests/fixed.sh')
-rw-r--r-- | tests/fixed.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/fixed.sh b/tests/fixed.sh new file mode 100644 index 000000000..fc37e40f4 --- /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 |