mbox series

[iptables,0/9] Improve testsuites' code coverage

Message ID 20220608162712.31202-1-phil@nwl.cc
Headers show
Series Improve testsuites' code coverage | expand

Message

Phil Sutter June 8, 2022, 4:27 p.m. UTC
First patch adds support to conveniently build with profiling support
for coverage analysis using 'gcov'.

Patches 2-5 Improve results by extending test cases.

Patch 6 is fallout, fixes a segfault when trying to use --init-table
in input to ebtables-restore.

The remaining patches improve string match printing and parsing and
enable previously commented out tests.

Phil Sutter (9):
  Makefile: Add --enable-profiling configure option
  tests: shell: Add some more rules to 0002-verbose-output_0
  tests: shell: Extend iptables-xml test a bit
  tests: shell: Extend zero counters test a bit further
  extensions: libebt_standard.t: Test logical-{in,out} as well
  ebtables-restore: Deny --init-table
  extensions: string: Do not print default --to value
  extensions: string: Review parse_string() function
  extensions: string: Fix and enable tests

 .gitignore                                    |  4 ++++
 configure.ac                                  | 10 +++++++++
 extensions/GNUmakefile.in                     |  2 +-
 extensions/libebt_standard.t                  |  5 +++++
 extensions/libxt_string.c                     | 17 +++++++--------
 extensions/libxt_string.t                     | 21 +++++++------------
 iptables/Makefile.am                          |  1 +
 .../testcases/ip6tables/0002-verbose-output_0 | 15 +++++++++++++
 .../testcases/ipt-save/0006iptables-xml_0     | 10 +--------
 .../testcases/iptables/0007-zero-counters_0   | 15 +++++++++++++
 iptables/xtables-eb.c                         |  3 +++
 libipq/Makefile.am                            |  1 +
 libiptc/Makefile.am                           |  1 +
 libxtables/Makefile.am                        |  1 +
 utils/Makefile.am                             |  1 +
 15 files changed, 74 insertions(+), 33 deletions(-)