aboutsummaryrefslogtreecommitdiff
path: root/tests/experimental-features.sh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-04 21:34:20 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-04 21:34:20 -0400
commit3f98353f196bfd1da3641751f4f7826f42581893 (patch)
tree5562ce20360bfd70e4b3aee53e0d92302d0d94a4 /tests/experimental-features.sh
parentbdeeffff967a513b6a35165bb476d24491a03e23 (diff)
parentd93c1514ebcf71390c8a8070759487e5a40dcc6f (diff)
Merge remote-tracking branch 'upstream/master' into list-experimental-features
Diffstat (limited to 'tests/experimental-features.sh')
-rw-r--r--tests/experimental-features.sh21
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/experimental-features.sh b/tests/experimental-features.sh
index 3be77d5cc..a4d55f5f4 100644
--- a/tests/experimental-features.sh
+++ b/tests/experimental-features.sh
@@ -15,9 +15,26 @@ function both_ways {
# Simple case, the configuration effects the running command
both_ways show-config
-# Complicated case, earlier args effect later args
+# Skipping for now, because we actually *do* want these to show up in
+# the manual, just be marked experimental. Will reenable once the manual
+# generation takes advantage of the JSON metadata on this.
-both_ways store gc --help
+# both_ways store gc --help
expect 1 nix --experimental-features 'nix-command' show-config --flake-registry 'https://no'
nix --experimental-features 'nix-command flakes' show-config --flake-registry 'https://no'
+
+# Double check these are stable
+nix --experimental-features '' --help
+nix --experimental-features '' doctor --help
+nix --experimental-features '' repl --help
+nix --experimental-features '' upgrade-nix --help
+
+# These 3 arguments are currently given to all commands, which is wrong (as not
+# all care). To deal with fixing later, we simply make them require the
+# nix-command experimental features --- it so happens that the commands we wish
+# stabilizing to do not need them anyways.
+for arg in '--print-build-logs' '--offline' '--refresh'; do
+ nix --experimental-features 'nix-command' "$arg" --help
+ ! nix --experimental-features '' "$arg" --help
+done