Skip to content

add infrastructure for unit tests

Thomas Haller netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v16 patches 7 repliesSuperseded

Changes to v1 from the cover letter

- rename some make targets
- add make check-unit to alias make check-TESTS. These targets run the tests hooked up as "TESTS=" (which for now are the tests in tests/unit).
- improve commit messages and various minor code changes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5build: add basic "check-{local,more,all}" and "build-all" make targetsMakefile.am+23 -00 replies
2/5build: add `make check-build` to run `./tests/build/run-tests.sh`Makefile.am+8 -00 replies
3/5build: add `make check-tree` to check consistency of source treeMakefile.am+8 -00 replies
4/5build: cleanup if-blocks for conditional compilation in "Makefile.am"Makefile.am+11 -150 replies
5/5tests/unit: add unit tests for libnftables.gitignore Makefile.am src/.gitignore +4 more+365 -160 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH nft v2 0/5] add infrastructure for unit tests

Changes to v1:

- rename some make targets
- add make check-unit to alias make check-TESTS. These targets run the tests hooked up as "TESTS=" (which for now are the tests in tests/unit).
- improve commit messages and various minor code changes.

Thomas Haller (5):
build: add basic "check-{local,more,all}" and "build-all" make targets
build: add make check-build to run ./tests/build/run-tests.sh
build: add make check-tree to check consistency of source tree
build: cleanup if-blocks for conditional compilation in "Makefile.am" tests/unit: add unit tests for libnftables

 .gitignore                           |  15 +-
 Makefile.am                          | 134 ++++++++++++---
 src/.gitignore                       |   5 -
 tests/unit/nft-test.h                |  14 ++
 tests/unit/test-libnftables-static.c |  16 ++
 tests/unit/test-libnftables.c        |  21 +++
 tools/test-runner.sh                 | 235 +++++++++++++++++++++++++++
 7 files changed, 412 insertions(+), 28 deletions(-)
 create mode 100644 tests/unit/nft-test.h
 create mode 100644 tests/unit/test-libnftables-static.c
 create mode 100644 tests/unit/test-libnftables.c
 create mode 100755 tools/test-runner.sh
Signature · 1 line
2.41.0