One to validate parsing, and one to test that packets match the expected mapping. omits json file because of: internal:0:0-0: Error: Expression type payload not allowed in context (RHS, STMT). i.e. there is more work to be done on json side to support this. Signed-off-by: Florian Westphal --- I suggest to defer this until after 1.1.4 is out. .../bitwise/bitwise_in_sets_and_maps | 27 ++++++++ .../dumps/bitwise_in_sets_and_maps.nft | 17 ++++++ .../testcases/packetpath/bitwise_with_map | 61 +++++++++++++++++++ .../packetpath/dumps/bitwise_with_map.nft | 16 +++++ 4 files changed, 121 insertions(+) create mode 100755 tests/shell/testcases/bitwise/bitwise_in_sets_and_maps create mode 100644 tests/shell/testcases/bitwise/dumps/bitwise_in_sets_and_maps.nft create mode 100755 tests/shell/testcases/packetpath/bitwise_with_map create mode 100644 tests/shell/testcases/packetpath/dumps/bitwise_with_map.nft diff --git a/tests/shell/testcases/bitwise/bitwise_in_sets_and_maps b/tests/shell/testcases/bitwise/bitwise_in_sets_and_maps new file mode 100755 index 000000000000..4f5044f512aa --- /dev/null +++ b/tests/shell/testcases/bitwise/bitwise_in_sets_and_maps @@ -0,0 +1,27 @@ +#!/bin/bash + +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_bitshift) + +set -e + +$NFT -f - <