summaryrefslogtreecommitdiffstats
path: root/tests/shell/features/json.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/features/json.sh')
-rwxr-xr-xtests/shell/features/json.sh6
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