add missing requirements in tests/shell
Pablo Neira Ayuso
maintainercover add missing requirements in tests/shell
Hi,
Several patch to add missing requirements, this has been detected while running tests on -stable 5.4.
Pablo Neira Ayuso (4):
tests: shell: payload matching requires egress support
tests: shell: chains/{netdev_netns_gone,netdev_chain_dev_gone} require inet/ingress support
tests: shell: maps/{vmap_unary,named_limits} require pipapo set backend
tests: shell: check for reset tcp options support
tests/shell/features/reset_tcp_options.nft | 5 +++++ tests/shell/testcases/chains/netdev_chain_dev_gone | 2 ++ tests/shell/testcases/chains/netdev_netns_gone | 2 ++ tests/shell/testcases/maps/named_limits | 2 ++ tests/shell/testcases/maps/vmap_unary | 2 ++ tests/shell/testcases/packetpath/payload | 2 ++ tests/shell/testcases/packetpath/set_lookups | 2 ++ tests/shell/testcases/packetpath/tcp_options | 2 ++ tests/shell/testcases/sets/typeof_sets_concat | 2 ++ 9 files changed, 21 insertions(+) create mode 100644 tests/shell/features/reset_tcp_options.nft
Signature · 1 line
2.30.2
Pablo Neira Ayuso
maintainerPATCH 1/4 tests: shell: payload matching requires egress support
Older kernels do not support for egress hook.
--- tests/shell/testcases/packetpath/payload | 2 ++ 1 file changed, 2 insertions(+)
tests/shell/testcases/packetpath/payload +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_netdev_egress) + rnd=$(mktemp -u XXXXXXXX) ns1="nft1payload-$rnd" ns2="nft2payload-$rnd"
Signature · 1 line
2.30.2
Pablo Neira Ayuso
maintainerPATCH 2/4 tests: shell: chains/{netdev_netns_gone,netdev_chain_dev_gone} require inet/ingress support
In reply to Pablo Neira Ayuso--- tests/shell/testcases/chains/netdev_chain_dev_gone | 2 ++ tests/shell/testcases/chains/netdev_netns_gone | 2 ++ 2 files changed, 4 insertions(+)
tests/shell/testcases/chains/netdev_chain_dev_gone +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_inet_ingress) + set -e iface_cleanup() {
tests/shell/testcases/chains/netdev_netns_gone +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_inet_ingress) + set -e rnd=$(mktemp -u XXXXXXXX)
Signature · 1 line
2.30.2
Pablo Neira Ayuso
maintainerPATCH 3/4 tests: shell: maps/{vmap_unary,named_limits} require pipapo set backend
In reply to Pablo Neira Ayuso... sets/typeof_sets_concat needs it too.
--- tests/shell/testcases/maps/named_limits | 2 ++ tests/shell/testcases/maps/vmap_unary | 2 ++ tests/shell/testcases/packetpath/set_lookups | 2 ++ tests/shell/testcases/sets/typeof_sets_concat | 2 ++ 4 files changed, 8 insertions(+)
tests/shell/testcases/maps/named_limits +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_pipapo) + dumpfile=$(dirname $0)/dumps/$(basename $0).nft $NFT -f "$dumpfile" || exit 1
tests/shell/testcases/maps/vmap_unary +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_pipapo) + set -e RULESET="table ip filter {
tests/shell/testcases/packetpath/set_lookups +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_pipapo) + set -e $NFT -f /dev/stdin <<"EOF"
tests/shell/testcases/sets/typeof_sets_concat +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_pipapo) + set -e dumpfile=$(dirname $0)/dumps/$(basename $0).nft
Signature · 1 line
2.30.2
Pablo Neira Ayuso
maintainerPATCH 4/4 tests: shell: check for reset tcp options support
In reply to Pablo Neira Ayuso--- tests/shell/features/reset_tcp_options.nft | 5 +++++ tests/shell/testcases/packetpath/tcp_options | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 tests/shell/features/reset_tcp_options.nft
tests/shell/features/reset_tcp_options.nft new file +5 -0
@@ -0,0 +1,5 @@ +table inet t { + chain c { + reset tcp option fastopen + } +}
tests/shell/testcases/packetpath/tcp_options +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_reset_tcp_options) + have_socat="no" socat -h > /dev/null && have_socat="yes"
Signature · 1 line
2.30.2