From 7bbc68fdff0afe22a517b63f3ca37d9021a5799c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Feb 2014 18:42:19 +0100 Subject: [PATCH] Test nix-env --set --- tests/user-envs.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 ]