tests: shell: check for features not available in 5.4
Pablo Neira Ayuso
maintainerPATCH 1/1 tests: shell: check for features not available in 5.4
5.4 -stable kernels report failures in these tests, this kernel version is lacking these feature.
The bitshift requirement is needed by this ruleset:
table ip x {
set s13 {
typeof tcp option mptcp subtype
elements = { mp-join, dss }
}
chain y {
tcp option mptcp subtype @s13 accept
}}
which uses bitshift in its bytecode.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- tests/shell/testcases/json/single_flag | 1 + tests/shell/testcases/sets/elem_limit_0 | 2 +- tests/shell/testcases/sets/set_stmt | 2 ++ tests/shell/testcases/sets/typeof_sets_0 | 1 + 4 files changed, 5 insertions(+), 1 deletion(-)
tests/shell/testcases/json/single_flag +1 -0
@@ -7,6 +7,7 @@ # recognized in input (checked against standard syntax input/output) # NFT_TEST_REQUIRES(NFT_TEST_HAVE_json) +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_table_flag_persist) set -e
tests/shell/testcases/sets/elem_limit_0 +1 -1
@@ -1,6 +1,6 @@ #!/bin/bash -## requires EXPR +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_expr) set -e
tests/shell/testcases/sets/set_stmt +2 -0
@@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_expr) + test_set_stmt() { local i=$1 local stmt1=$2
tests/shell/testcases/sets/typeof_sets_0 +1 -0
@@ -5,6 +5,7 @@ # ways for declaration. # NFT_TEST_REQUIRES(NFT_TEST_HAVE_ip_options) +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) set -e
Signature · 1 line
2.30.2