diff options
author | Thomas Haller <thaller@redhat.com> | 2023-09-18 12:28:27 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-18 13:08:59 +0200 |
commit | f30cb622d27e4b14454bccb4b9c0c990a68888df (patch) | |
tree | eae00a401566bedfa045487ab2c92cb052c4d982 /tests/shell/features/json.sh | |
parent | 5f83041242ca0ff38a74d51b85e00047568c4933 (diff) |
tests/shell: implement NFT_TEST_HAVE_json feature detection as script
No more need to special case the "run a script" approach for detecting
the json feature. Use the new mechanism instead.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/features/json.sh')
-rwxr-xr-x | tests/shell/features/json.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/features/json.sh b/tests/shell/features/json.sh new file mode 100755 index 00000000..d8115702 --- /dev/null +++ b/tests/shell/features/json.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Detect JSON support. Note that $NFT may not be the binary from our build +# tree, hence we detect it by running the binary (instead of asking the build +# configuration). +$NFT -j list ruleset |