From: Pablo Neira Ayuso Date: Wed, 12 Jun 2024 22:37:48 +0000 (+0200) Subject: tests: shell: skip ip option tests if kernel does not support it X-Git-Tag: v1.1.0~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c624578ee18131492e7f72b662d5faf7c042e0d8;p=thirdparty%2Fnftables.git tests: shell: skip ip option tests if kernel does not support it Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/features/ip_options.nft b/tests/shell/features/ip_options.nft new file mode 100644 index 00000000..0b8cb09c --- /dev/null +++ b/tests/shell/features/ip_options.nft @@ -0,0 +1,8 @@ +# dbb5281a1f84 ("netfilter: nf_tables: add support for matching IPv4 options") +# v5.3-rc1~140^2~153^2~1 + +table ip x { + chain y { + ip option ra value 255 + } +} diff --git a/tests/shell/testcases/sets/typeof_sets_0 b/tests/shell/testcases/sets/typeof_sets_0 index 016227da..a105acff 100755 --- a/tests/shell/testcases/sets/typeof_sets_0 +++ b/tests/shell/testcases/sets/typeof_sets_0 @@ -4,6 +4,8 @@ # s1 and s2 are identical, they just use different # ways for declaration. +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_ip_options) + set -e die() {