From: Florian Westphal Date: Mon, 18 Sep 2023 10:28:18 +0000 (+0200) Subject: tests/shell: skip inner matching tests if unsupported X-Git-Tag: v1.0.9~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad86eb24be368a9f8fc44e1057ee75394c560adf;p=thirdparty%2Fnftables.git tests/shell: skip inner matching tests if unsupported Signed-off-by: Florian Westphal Signed-off-by: Thomas Haller --- diff --git a/tests/shell/features/inner_matching.nft b/tests/shell/features/inner_matching.nft new file mode 100644 index 00000000..6c86fd35 --- /dev/null +++ b/tests/shell/features/inner_matching.nft @@ -0,0 +1,7 @@ +# 3a07327d10a0 ("netfilter: nft_inner: support for inner tunnel header matching") +# v6.2-rc1~99^2~350^2~4 +table ip t { + chain c { + udp dport 4789 vxlan ip saddr 1.2.3.4 + } +} diff --git a/tests/shell/testcases/sets/inner_0 b/tests/shell/testcases/sets/inner_0 index 0eb172a8..39d91bd9 100755 --- a/tests/shell/testcases/sets/inner_0 +++ b/tests/shell/testcases/sets/inner_0 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_inner_matching) + set -e RULESET="table netdev x {