summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0043concatenated_ranges_1
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-11-06 19:49:00 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-11-11 09:45:51 +0100
commitf24f9b11a1e9701d0e428e692c99be4624e20b23 (patch)
tree93b67522f9de3d4dd8c2f74dfdb1e533192a9777 /tests/shell/testcases/sets/0043concatenated_ranges_1
parent505a6794422238f9f1d590fe8c1ee3ea7fd46579 (diff)
tests: shell: skip pipapo tests if kernel lacks support
Skip tests that require net/netfilter/nft_set_pipapo support. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/sets/0043concatenated_ranges_1')
-rwxr-xr-xtests/shell/testcases/sets/0043concatenated_ranges_12
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0043concatenated_ranges_1 b/tests/shell/testcases/sets/0043concatenated_ranges_1
index 1be28893..bb3bf6b2 100755
--- a/tests/shell/testcases/sets/0043concatenated_ranges_1
+++ b/tests/shell/testcases/sets/0043concatenated_ranges_1
@@ -2,6 +2,8 @@
#
# 0043concatenated_ranges_1 - Insert and list subnets of different sizes
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_pipapo)
+
check() {
$NFT add element "${1}" t s "{ ${2} . ${3} }"
[ "$( $NFT list set "${1}" t s | grep -c "${2} . ${3}" )" = 1 ]