Test multiple ndpiReader configurations (#1931)

Extend internal unit tests to handle multiple configurations.
As some examples, add tests about:
* disabling some protocols
* disabling Ookla aggressiveness

Every configurations data is stored in a dedicated directory under
`tests\cfgs`
This commit is contained in:
Ivan Nardi
2023-04-06 11:30:36 +02:00
committed by GitHub
parent 7a627296f0
commit 7714507f81
807 changed files with 191 additions and 69 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ fuzz_gcrypt_light_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
# required for Google oss-fuzz
# see https://github.com/google/oss-fuzz/tree/master/projects/ndpi
testpcaps := $(wildcard ../tests/pcap/*.pcap*)
testpcaps := $(wildcard ../tests/cfgs/default/pcap/*.pcap*)
fuzz_ndpi_reader_seed_corpus.zip: $(testpcaps)
zip -j fuzz_ndpi_reader_seed_corpus.zip $(testpcaps)
+1 -1
View File
@@ -4,7 +4,7 @@ if BUILD_UNITTESTS
TESTS += do-unit.sh
endif
EXTRA_DIST = pcap result performance \
EXTRA_DIST = cfgs/*/pcap cfgs/*/result cfgs/*/*.txt performance \
unit/unit.c unit/Makefile.in \
dga/dga_evaluate.c dga/Makefile.in dga/README.md dga/test_dga.csv dga/test_non_dga.csv do-dga.sh \
do-unit.sh do.sh.in ossfuzz.sh

Some files were not shown because too many files have changed in this diff Show More