diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26 18:42:19 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26 18:42:19 +0100 |
commit | 7bbc68fdff0afe22a517b63f3ca37d9021a5799c (patch) | |
tree | ebec3ff61346d865205f9acc9f7807281962d326 /tests | |
parent | a0806389e909203d9c3c1c32a2cc95b50300da59 (diff) |
Test nix-env --set
Diffstat (limited to 'tests')
-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 c27b11ade..ab445a8ee 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 ] |