about summary refs log tree commit diff
path: root/tests/user-envs.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-02-17T17·05+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-02-17T17·05+0000
commit58fc420b365b8f8d6faaa332ab3ba4e97ad584e0 (patch)
tree70be12ee48f8bd18c681d42004f85abdb137f6a3 /tests/user-envs.sh
parent4ddd5ff39cddf46acb23eedc9638f9709da0c47d (diff)
* And another test.
Diffstat (limited to 'tests/user-envs.sh')
-rw-r--r--tests/user-envs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh
index 4f94690d8378..bd14f51080b3 100644
--- a/tests/user-envs.sh
+++ b/tests/user-envs.sh
@@ -85,6 +85,11 @@ $nixenv -p $profiles/test -f ./user-envs.nix -i foo
 test "$($nixenv -p $profiles/test -q | grep foo- | wc)" -eq 1
 $nixenv -p $profiles/test -q | grep -q foo-2.0
 
+# On the other hand, this should install both (and should fail due to
+# a collision).
+$nixenv -p $profiles/test -f ./user-envs.nix -e '*'
+if $nixenv -p $profiles/test -f ./user-envs.nix -i foo-1.0 foo-2.0; then false; fi
+
 # Installing "*" should install one foo and one bar.
 $nixenv -p $profiles/test -f ./user-envs.nix -e '*'
 $nixenv -p $profiles/test -f ./user-envs.nix -i '*'