From: Florian Westphal <fw@xxxxxxxxx> Signed-off-by: Florian Westphal <fw@xxxxxxxxx> Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx> --- tests/shell/features/bitshift.nft | 7 +++++++ tests/shell/testcases/bitwise/0040mark_binop_0 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_1 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_2 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_3 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_4 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_5 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_6 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_7 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_8 | 2 ++ tests/shell/testcases/bitwise/0040mark_binop_9 | 2 ++ 11 files changed, 27 insertions(+) create mode 100644 tests/shell/features/bitshift.nft diff --git a/tests/shell/features/bitshift.nft b/tests/shell/features/bitshift.nft new file mode 100644 index 000000000000..7f9ccb64f0e6 --- /dev/null +++ b/tests/shell/features/bitshift.nft @@ -0,0 +1,7 @@ +# 567d746b55bc ("netfilter: bitwise: add support for shifts.") +# v5.6-rc1~151^2~73^2 +table ip t { + chain c { + meta mark set meta mark << 2 + } +} diff --git a/tests/shell/testcases/bitwise/0040mark_binop_0 b/tests/shell/testcases/bitwise/0040mark_binop_0 index 4280e33ac45a..4ecc9d3d6c83 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_0 +++ b/tests/shell/testcases/bitwise/0040mark_binop_0 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_1 b/tests/shell/testcases/bitwise/0040mark_binop_1 index 7e71f3eb43a8..bd9e028df78c 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_1 +++ b/tests/shell/testcases/bitwise/0040mark_binop_1 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_2 b/tests/shell/testcases/bitwise/0040mark_binop_2 index 94ebe976c987..5e66a27a0498 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_2 +++ b/tests/shell/testcases/bitwise/0040mark_binop_2 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_3 b/tests/shell/testcases/bitwise/0040mark_binop_3 index b491565ca573..21dda6701d38 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_3 +++ b/tests/shell/testcases/bitwise/0040mark_binop_3 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_4 b/tests/shell/testcases/bitwise/0040mark_binop_4 index adc5f25ba930..e5c8a42a0eb4 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_4 +++ b/tests/shell/testcases/bitwise/0040mark_binop_4 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_5 b/tests/shell/testcases/bitwise/0040mark_binop_5 index 286b7b1fc7f9..184fbed0701d 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_5 +++ b/tests/shell/testcases/bitwise/0040mark_binop_5 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_6 b/tests/shell/testcases/bitwise/0040mark_binop_6 index 9ea82952ef24..129dd5c085f4 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_6 +++ b/tests/shell/testcases/bitwise/0040mark_binop_6 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_7 b/tests/shell/testcases/bitwise/0040mark_binop_7 index ff9cfb55ac3e..791a7943581d 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_7 +++ b/tests/shell/testcases/bitwise/0040mark_binop_7 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_8 b/tests/shell/testcases/bitwise/0040mark_binop_8 index b348ee9367df..5e7bd28da754 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_8 +++ b/tests/shell/testcases/bitwise/0040mark_binop_8 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" diff --git a/tests/shell/testcases/bitwise/0040mark_binop_9 b/tests/shell/testcases/bitwise/0040mark_binop_9 index d19447d42b22..a7b60fb87812 100755 --- a/tests/shell/testcases/bitwise/0040mark_binop_9 +++ b/tests/shell/testcases/bitwise/0040mark_binop_9 @@ -1,5 +1,7 @@ #!/bin/bash +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + set -e RULESET=" -- 2.41.0