netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 00/12] update tests/shell for 5.4 kernels
@ 2023-11-09 16:22 Pablo Neira Ayuso
  2023-11-09 16:22 ` [PATCH nft 01/12] tests: shell: export DIFF to use it from feature scripts Pablo Neira Ayuso
                   ` (12 more replies)
  0 siblings, 13 replies; 22+ messages in thread
From: Pablo Neira Ayuso @ 2023-11-09 16:22 UTC (permalink / raw)
  To: netfilter-devel; +Cc: thaller, fw

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

-- 
2.30.2


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-11-09 23:29 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-09 16:22 [PATCH nft 00/12] update tests/shell for 5.4 kernels Pablo Neira Ayuso
2023-11-09 16:22 ` [PATCH nft 01/12] tests: shell: export DIFF to use it from feature scripts Pablo Neira Ayuso
2023-11-09 17:49   ` Thomas Haller
2023-11-09 19:14     ` Pablo Neira Ayuso
2023-11-09 20:35       ` Thomas Haller
2023-11-09 23:21         ` Florian Westphal
2023-11-09 23:25       ` Florian Westphal
2023-11-09 16:22 ` [PATCH nft 02/12] tests: shell: skip pipapo tests if kernel lacks support Pablo Neira Ayuso
2023-11-09 23:25   ` Florian Westphal
2023-11-09 16:22 ` [PATCH nft 03/12] tests: shell: skip prerouting reject " Pablo Neira Ayuso
2023-11-09 23:26   ` Florian Westphal
2023-11-09 16:22 ` [PATCH nft 04/12] tests: shell: skip stateful expression in sets " Pablo Neira Ayuso
2023-11-09 23:27   ` Florian Westphal
2023-11-09 16:22 ` [PATCH nft 05/12] tests: shell: skip NAT netmap " Pablo Neira Ayuso
2023-11-09 16:22 ` [PATCH nft 06/12] tests: shell: skip comment " Pablo Neira Ayuso
2023-11-09 16:22 ` [PATCH nft 07/12] tests: shell: skip multidevice chain " Pablo Neira Ayuso
2023-11-09 16:23 ` [PATCH nft 08/12] tests: shell: skip if kernel does not support bitshift Pablo Neira Ayuso
2023-11-09 16:23 ` [PATCH nft 09/12] tests: shell: split set NAT interval test Pablo Neira Ayuso
2023-11-09 16:23 ` [PATCH nft 10/12] tests: shell: split map test Pablo Neira Ayuso
2023-11-09 16:23 ` [PATCH nft 11/12] tests: shell: split single element in anonymous set Pablo Neira Ayuso
2023-11-09 16:23 ` [PATCH nft 12/12] tests: shell: split merge nat optimization in two tests Pablo Neira Ayuso
2023-11-09 23:29 ` [PATCH nft 00/12] update tests/shell for 5.4 kernels Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).