diff options
Diffstat (limited to 'tests/user-envs.sh')
-rw-r--r-- | tests/user-envs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh index c27b11ade1e2..ab445a8ee9fc 100644 --- a/tests/user-envs.sh +++ b/tests/user-envs.sh @@ -154,3 +154,9 @@ nix-env -i foo-0.1 foo-1.0 [ "$($profiles/test/bin/foo)" = "foo-1.0" ] nix-env --set-flag priority 1 foo-0.1 [ "$($profiles/test/bin/foo)" = "foo-0.1" ] + +# Test nix-env --set. +nix-env --set $outPath10 +[ "$(nix-store -q --resolve $profiles/test)" = $outPath10 ] +nix-env --set $drvPath10 +[ "$(nix-store -q --resolve $profiles/test)" = $outPath10 ] |