aboutsummaryrefslogtreecommitdiff
path: root/tests/nix-profile.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-02 21:48:25 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-03-02 21:48:25 +0100
commitd2586188fe8745c34e5a97032d045f8b74100a98 (patch)
tree302a04b0a2ff0ae5c3e2d68068800e2e32adb2f4 /tests/nix-profile.sh
parent5d208cbe416ed38693cd33643731fd001135a582 (diff)
tests/common.sh.in: Add enableFeatures helper
Diffstat (limited to 'tests/nix-profile.sh')
-rw-r--r--tests/nix-profile.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh
index 549840767..be80e089a 100644
--- a/tests/nix-profile.sh
+++ b/tests/nix-profile.sh
@@ -3,6 +3,8 @@ source common.sh
clearStore
clearProfiles
+enableFeatures "ca-derivations ca-references"
+
# Make a flake.
flake1Dir=$TEST_ROOT/flake1
mkdir -p $flake1Dir
@@ -82,13 +84,13 @@ nix profile wipe-history
# Test upgrade to CA package.
printf true > $flake1Dir/ca.nix
printf 3.0 > $flake1Dir/version
-nix profile upgrade --extra-experimental-features ca-derivations 0
+nix profile upgrade 0
nix profile history | grep "packages.$system.default: 1.0 -> 3.0"
# Test new install of CA package.
nix profile remove 0
printf 4.0 > $flake1Dir/version
printf Utrecht > $flake1Dir/who
-nix profile install --extra-experimental-features ca-derivations $flake1Dir
+nix profile install $flake1Dir
[[ $($TEST_HOME/.nix-profile/bin/hello) = "Hello Utrecht" ]]
[[ $(nix path-info --json $(realpath $TEST_HOME/.nix-profile/bin/hello) | jq -r .[].ca) =~ fixed:r:sha256: ]]