Skip to content

Run all test suites via 'make check'

Phil Sutter netfilter-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 5 repliesIn review
  2. v311 patches 10 repliesSuperseded
  3. v27 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Applied the initial monitor test suite enhancements already
- gitignore generated logs and reports
- New patch 7

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tests: monitor: Excercise all syntaxes and variants by defaulttests/monitor/run-tests.sh+79 -550 replies
2/8tests: py: Enable JSON and JSON schema by defaulttests/py/nft-test.py+12 -44 replies
3/8tests: Prepare exit codes for automaketests/monitor/run-tests.sh tests/py/nft-test.py tests/shell/run-tests.sh+12 -130 replies
4/8tests: json_echo: Skip if run as non-roottests/json_echo/run-test.py+4 -00 replies
5/8tests: shell: Skip packetpath/nat_ftp in fake root envtests/shell/testcases/packetpath/nat_ftp+3 -00 replies
6/8tests: build: Do not assume caller's CWDtests/build/run-tests.sh+2 -00 replies
7/8tests: build: Avoid a recursive 'make check' runtests/build/run-tests.sh+4 -00 replies
8/8Makefile: Enable support for 'make check'.gitignore Makefile.am configure.ac+27 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [nft PATCH v4 0/8] Run all test suites via 'make check'

Help me (and maybe others) to not occasionally forget to run this or that test suite in this or that mode:

Have test suites execute all variants by default (patches 1 and 2), make sure their exit codes match Automake expectations (patch 3) and register them with Automake (patch 8). Also fix for running 'make check' as non-root (patches 4 and 5) and calling build test suite from outside its directory (patch 6).

There is a "funny" problem with build test suite calling 'make distcheck' which behaves differently under the environment polluted by the calling 'make check' invocation, details in patch 7.

Changes since v3:
- Applied the initial monitor test suite enhancements already
- gitignore generated logs and reports
- New patch 7

Changes since v2:
- Drop the need for RUN_FULL_TESTSUITE env var by making the "all variants" mode the default in all test suites
- Implement JSON echo testing into monitor test suite, stored JSON output matches echo output after minor adjustment

Changes since v1:
- Also integrate build test suite
- Populate TESTS variable only for non-distcheck builds, so 'make distcheck' does not run any test suite

Phil Sutter (8):
tests: monitor: Excercise all syntaxes and variants by default
tests: py: Enable JSON and JSON schema by default
tests: Prepare exit codes for automake
tests: json_echo: Skip if run as non-root
tests: shell: Skip packetpath/nat_ftp in fake root env
tests: build: Do not assume caller's CWD
tests: build: Avoid a recursive 'make check' run
Makefile: Enable support for 'make check'

 .gitignore                               |  13 ++
 Makefile.am                              |   9 ++
 configure.ac                             |   5 +
 tests/build/run-tests.sh                 |   6 +
 tests/json_echo/run-test.py              |   4 +
 tests/monitor/run-tests.sh               | 145 +++++++++++++----------
 tests/py/nft-test.py                     |  28 +++--
 tests/shell/run-tests.sh                 |   2 +-
 tests/shell/testcases/packetpath/nat_ftp |   3 +
 9 files changed, 143 insertions(+), 72 deletions(-)
Signature · 1 line
2.51.0