diff options
author | regnat <rg@regnat.ovh> | 2020-09-16 13:52:15 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-09-16 13:53:28 +0200 |
commit | c29624bf7d58aeb698ddd12b983465d355fccf79 (patch) | |
tree | 4f48566eee9324c587bb00e8067bc9c9365cbc65 /tests | |
parent | d72927aa7a16be56b134dfadf34d5bbdb751f264 (diff) |
Add a test for `nix describe-stores`
Doesn't test much, but at least ensures that the command runs properly
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 |