Skip to content

Rework internal unit tests#3149

Open
IvanNardi wants to merge 1 commit intontop:devfrom
IvanNardi:tests
Open

Rework internal unit tests#3149
IvanNardi wants to merge 1 commit intontop:devfrom
IvanNardi:tests

Conversation

@IvanNardi
Copy link
Copy Markdown
Collaborator

Put all the internal unit tests in a separate file. The tests suite run (via ndpiReader):

  • if the option --run-tests is used,
  • always if the library is compiled with -DNDPI_EXTENDED_SANITY_CHECKS (useful in CI)

Extend tests using part of #3146.

We keep tests/unit/unit.c for serialization tests, like now, because that is the only code that depends on the external library libjson-c

@IvanNardi IvanNardi force-pushed the tests branch 3 times, most recently from fdf4c5a to a4bbfa7 Compare March 28, 2026 15:09
Put all the internal unit tests in a separate file.
The tests suite run (via `ndpiReader`):
* if the option `--run-tests` is used,
* always if the library is compiled with `-DNDPI_EXTENDED_SANITY_CHECKS`
  (useful in CI)

Extend tests using part of ntop#3146.

We keep `tests/unit/unit.c` for serialization tests, like now, because
that is the only code that depends on the external library libjson-c
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant