aboutsummaryrefslogtreecommitdiff
path: root/tests/describe-stores.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-16 17:02:30 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-09-16 17:02:30 +0200
commit5080d4e7b2525d1656282c65a217a22ff8381df3 (patch)
tree72eab8c0135ca5c37e1d9b099f7880ccfbe2401f /tests/describe-stores.sh
parent0066ef6c59c356d5714f2e26af9471937ba0c865 (diff)
parent77a0e2c5beba478f4cfc9f3c9516e516a5da43c9 (diff)
Merge branch 'document-store-options' of https://github.com/tweag/nix
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) ]]