diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-16 17:02:30 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-16 17:02:30 +0200 |
commit | 5080d4e7b2525d1656282c65a217a22ff8381df3 (patch) | |
tree | 72eab8c0135ca5c37e1d9b099f7880ccfbe2401f /tests | |
parent | 0066ef6c59c356d5714f2e26af9471937ba0c865 (diff) | |
parent | 77a0e2c5beba478f4cfc9f3c9516e516a5da43c9 (diff) |
Merge branch 'document-store-options' of https://github.com/tweag/nix
Diffstat (limited to 'tests')
-rw-r--r-- | tests/describe-stores.sh | 8 | ||||
-rw-r--r-- | tests/local.mk | 1 |
2 files changed, 9 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) ]] diff --git a/tests/local.mk b/tests/local.mk index 5d25de019..594901504 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -32,6 +32,7 @@ nix_tests = \ post-hook.sh \ function-trace.sh \ recursive.sh \ + describe-stores.sh \ flakes.sh \ content-addressed.sh # parallel.sh |