]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: check for features not available in 5.4
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 29 May 2025 09:49:18 +0000 (11:49 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 29 May 2025 10:17:41 +0000 (12:17 +0200)
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 <pablo@netfilter.org>
tests/shell/testcases/json/single_flag
tests/shell/testcases/sets/elem_limit_0
tests/shell/testcases/sets/set_stmt
tests/shell/testcases/sets/typeof_sets_0

index 41fab63b0a23bbf9ef1675e96d84dc0cd25d0abe..43ae4528a179a971bf93cb0d95238a6087eeca52 100755 (executable)
@@ -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
 
index b57f9274bcd0d6efeef02575fe3fcff0b4370a19..ed6009166fb97df3ccd97adf400d95ac8d05443a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-## requires EXPR
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_expr)
 
 set -e
 
index 0433b6768b6927ef1827b507f48e7c8e506c421e..ea50525a803769835d467dde3238aaf537ce6a3b 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_expr)
+
 test_set_stmt() {
        local i=$1
        local stmt1=$2
index ef2726db3b3068d14cd360d9601df9e87f500a6f..28e39b4d2cb3097c1c037cd88ed92893bec83cb0 100755 (executable)
@@ -5,6 +5,7 @@
 # ways for declaration.
 
 # NFT_TEST_REQUIRES(NFT_TEST_HAVE_ip_options)
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift)
 
 set -e