Test nix-env --set

This commit is contained in:
Eelco Dolstra 2014-02-26 18:42:19 +01:00
parent a0806389e9
commit 7bbc68fdff
1 changed files with 6 additions and 0 deletions

View File

@ -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 ]