diff options
author | Florian Westphal <fw@strlen.de> | 2023-09-18 12:28:16 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-18 13:08:37 +0200 |
commit | 63af24fc80d1451cdf2d62eecea5e7edb2954123 (patch) | |
tree | 021f652c68e7b5878e547b0d3276cc96c827e4f0 /tests/shell/features/netdev_chain_without_device.nft | |
parent | bc4f67e0bc08da4008a72ed5196b2638c513df15 (diff) |
tests/shell: skip netdev_chain_0 if kernel requires netdev device
This test case only works on kernel 6.4+.
Add feature probe for this and tag the test accordingly using
the scheme added by Thomas Haller in
"tests/shell: skip tests if nft does not support JSON mode"
so that run-test.sh skips it if kernel requires a device.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'tests/shell/features/netdev_chain_without_device.nft')
-rw-r--r-- | tests/shell/features/netdev_chain_without_device.nft | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shell/features/netdev_chain_without_device.nft b/tests/shell/features/netdev_chain_without_device.nft new file mode 100644 index 00000000..25eb200f --- /dev/null +++ b/tests/shell/features/netdev_chain_without_device.nft @@ -0,0 +1,7 @@ +# 207296f1a03b ("netfilter: nf_tables: allow to create netdev chain without device") +# v6.4-rc1~132^2~14^2 +table netdev t { + chain c { + type filter hook ingress priority 0; policy accept; + } +} |