Skip to content

update tests/shell for 5.4 kernels

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12tests: shell: export DIFF to use it from feature scriptstests/shell/run-tests.sh+6 -55 replies
2/12tests: shell: skip pipapo tests if kernel lacks supporttests/shell/features/pipapo.nft tests/shell/testcases/maps/0013map_0 tests/shell/testcases/maps/anon_objmap_concat +9 more+38 -21 reply
3/12tests: shell: skip prerouting reject tests if kernel lacks supporttests/shell/features/prerouting_reject.nft tests/shell/testcases/optimizations/ruleset+10 -01 reply
4/12tests: shell: skip stateful expression in sets tests if kernel lacks supporttests/shell/features/set_expr.sh tests/shell/testcases/json/0002table_map_0 tests/shell/testcases/maps/0009vmap_0 +4 more+30 -01 reply
5/12tests: shell: skip NAT netmap tests if kernel lacks supporttests/shell/features/netmap.nft tests/shell/testcases/sets/0046netmap_0+10 -00 replies
6/12tests: shell: skip comment tests if kernel lacks supporttests/shell/features/comment.sh tests/shell/testcases/json/0006obj_comment_0 tests/shell/testcases/optionals/comments_chain_0 +3 more+20 -00 replies
7/12tests: shell: skip multidevice chain tests if kernel lacks supporttests/shell/features/netdev_chain_multidevice.sh tests/shell/testcases/chains/0042chain_variable_0+16 -00 replies
8/12tests: shell: skip if kernel does not support bitshifttests/shell/testcases/maps/vmap_mark_bitwise_0 tests/shell/testcases/sets/typeof_sets_0+45 -430 replies
9/12tests: shell: split set NAT interval testtests/shell/testcases/sets/0067nat_concat_interval_0 tests/shell/testcases/sets/0067nat_interval_0 tests/shell/testcases/sets/dumps/0067nat_concat_interval_0.nft +1 more+32 -220 replies
10/12tests: shell: split map testtests/shell/testcases/maps/0012map_0 tests/shell/testcases/maps/0012map_concat_0 tests/shell/testcases/maps/dumps/0012map_0.nft +1 more+38 -320 replies
11/12tests: shell: split single element in anonymous settests/shell/testcases/optimizations/dumps/single_anon_set.nft tests/shell/testcases/optimizations/dumps/single_anon_set_expr.nft tests/shell/testcases/optimizations/single_anon_set +1 more+31 -40 replies
12/12tests: shell: split merge nat optimization in two teststests/shell/testcases/optimizations/dumps/merge_nat.nft tests/shell/testcases/optimizations/dumps/merge_nat_concat.nft tests/shell/testcases/optimizations/merge_nat +1 more+26 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 00/12] update tests/shell for 5.4 kernels

Hi,

This is still not complete, still 8 tests/shell fail in 5.4 related to flowtable features that are missing, but this batch is already getting large.

This is the series:

1) export DIFF so it can be used from feature scripts.
2) Detect if pipapo set backend is present.
3) Detect if reject from prerouting chain support is present.
4) Detect if stateful expression in sets is supported.
5) Detect if NAT netmap support is present.
6) Detect if multidevice netdev chain support is present.
7) Split several tests not to lose coverage, usually those containing set intervals and set intervals with concatenations (pipapo). It is a bit of sledgehammer solution but for tests/shell I think it is fine.

I can follow up with a more complete series contains all feature detection for 5.4 or apply incrementally, just let me know.

Thanks.

Pablo Neira Ayuso (12):
tests: shell: export DIFF to use it from feature scripts
tests: shell: skip pipapo tests if kernel lacks support
tests: shell: skip prerouting reject tests if kernel lacks support
tests: shell: skip stateful expression in sets tests if kernel lacks support
tests: shell: skip NAT netmap tests if kernel lacks support
tests: shell: skip comment tests if kernel lacks support
tests: shell: skip multidevice chain tests if kernel lacks support
tests: shell: skip if kernel does not support bitshift
tests: shell: split set NAT interval test
tests: shell: split map test
tests: shell: split single element in anonymous set
tests: shell: split merge nat optimization in two tests

 tests/shell/features/comment.sh               | 11 +++
 .../features/netdev_chain_multidevice.sh      | 14 +++
 tests/shell/features/netmap.nft               |  8 ++
 tests/shell/features/pipapo.nft               |  9 ++
 tests/shell/features/prerouting_reject.nft    |  8 ++
 tests/shell/features/set_expr.sh              | 19 ++++
 tests/shell/run-tests.sh                      | 11 +--
 .../testcases/chains/0042chain_variable_0     |  2 +
 tests/shell/testcases/json/0002table_map_0    |  1 +
 tests/shell/testcases/json/0006obj_comment_0  |  1 +
 tests/shell/testcases/maps/0009vmap_0         |  2 +
 tests/shell/testcases/maps/0012map_0          | 19 ----
 tests/shell/testcases/maps/0012map_concat_0   | 24 ++++++
 tests/shell/testcases/maps/0013map_0          |  2 +
 tests/shell/testcases/maps/anon_objmap_concat |  2 +
 .../shell/testcases/maps/dumps/0012map_0.nft  | 13 ---
 .../testcases/maps/dumps/0012map_concat_0.nft | 14 +++
 tests/shell/testcases/maps/typeof_integer_0   |  2 +
 .../shell/testcases/maps/vmap_mark_bitwise_0  |  2 +
 .../optimizations/dumps/merge_nat.nft         |  8 --
 .../optimizations/dumps/merge_nat_concat.nft  |  8 ++
 .../optimizations/dumps/single_anon_set.nft   |  1 -
 .../dumps/single_anon_set_expr.nft            |  5 ++
 tests/shell/testcases/optimizations/merge_nat | 13 ---
 .../testcases/optimizations/merge_nat_concat  | 18 ++++
 .../optimizations/merge_stmts_concat          |  2 +
 .../testcases/optimizations/merge_stmts_vmap  |  2 +
 .../testcases/optimizations/merge_vmap_raw    |  2 +
 tests/shell/testcases/optimizations/ruleset   |  2 +
 .../testcases/optimizations/single_anon_set   |  3 -
 .../optimizations/single_anon_set_expr        | 26 ++++++
 .../testcases/optionals/comments_chain_0      |  2 +
 .../testcases/optionals/comments_objects_0    |  2 +
 .../testcases/optionals/comments_table_0      |  2 +
 tests/shell/testcases/sets/0020comments_0     |  2 +
 tests/shell/testcases/sets/0034get_element_0  |  2 +
 .../testcases/sets/0043concatenated_ranges_0  |  1 +
 .../testcases/sets/0043concatenated_ranges_1  |  2 +
 .../testcases/sets/0044interval_overlap_0     | 12 ++-
 tests/shell/testcases/sets/0046netmap_0       |  2 +
 tests/shell/testcases/sets/0047nat_0          |  2 +
 tests/shell/testcases/sets/0048set_counters_0 |  2 +
 .../testcases/sets/0051set_interval_counter_0 |  2 +
 .../testcases/sets/0067nat_concat_interval_0  | 17 +---
 tests/shell/testcases/sets/0067nat_interval_0 | 18 ++++
 tests/shell/testcases/sets/concat_interval_0  |  2 +
 .../sets/dumps/0067nat_concat_interval_0.nft  |  7 --
 .../sets/dumps/0067nat_interval_0.nft         | 12 +++
 tests/shell/testcases/sets/elem_opts_compat_0 |  2 +
 tests/shell/testcases/sets/typeof_sets_0      | 86 +++++++++----------
 50 files changed, 302 insertions(+), 129 deletions(-)
 create mode 100755 tests/shell/features/comment.sh
 create mode 100755 tests/shell/features/netdev_chain_multidevice.sh
 create mode 100644 tests/shell/features/netmap.nft
 create mode 100644 tests/shell/features/pipapo.nft
 create mode 100644 tests/shell/features/prerouting_reject.nft
 create mode 100755 tests/shell/features/set_expr.sh
 create mode 100755 tests/shell/testcases/maps/0012map_concat_0
 create mode 100644 tests/shell/testcases/maps/dumps/0012map_concat_0.nft
 create mode 100644 tests/shell/testcases/optimizations/dumps/merge_nat_concat.nft
 create mode 100644 tests/shell/testcases/optimizations/dumps/single_anon_set_expr.nft
 create mode 100755 tests/shell/testcases/optimizations/merge_nat_concat
 create mode 100755 tests/shell/testcases/optimizations/single_anon_set_expr
 create mode 100755 tests/shell/testcases/sets/0067nat_interval_0
 create mode 100644 tests/shell/testcases/sets/dumps/0067nat_interval_0.nft
Signature · 1 line
2.30.2