aboutsummaryrefslogtreecommitdiff
path: root/tests/describe-stores.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/describe-stores.sh')
-rw-r--r--tests/describe-stores.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/describe-stores.sh b/tests/describe-stores.sh
new file mode 100644
index 000000000..3fea61483
--- /dev/null
+++ b/tests/describe-stores.sh
@@ -0,0 +1,8 @@
+source common.sh
+
+# Query an arbitrary value in `nix describe-stores --json`'s output just to
+# check that it has the right structure
+[[ $(nix --experimental-features 'nix-command flakes' describe-stores --json | jq '.["SSH Store"]["compress"]["defaultValue"]') == false ]]
+
+# Ensure that the output of `nix describe-stores` isn't empty
+[[ -n $(nix --experimental-features 'nix-command flakes' describe-stores) ]]