diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-05-12 12:24:54 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-05-12 12:46:49 +0200 |
commit | fa079d2346ec105d73fcb3ccf500c48aa9f219c0 (patch) | |
tree | db13d80bf726815c4548036b11241606a2107025 /README.md | |
parent | 50f9c1bba149e6cd5cb512087f60ad6e293ea542 (diff) |
Git submodule libnDPI update.
* enable ctest to run integration tests (**only** if BUILD_NDPI=ON)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -129,7 +129,16 @@ or anything below `./examples`. # test -You may want to run some integration tests using pcap files from nDPI: +The recommended way to run integration / diff tests: + +```shell +mkdir build +cd build +cmake .. -DBUILD_NDPI=ON +make nDPId-test test +``` + +Alternatively you can run some integration tests manually: `./test/run_tests.sh /path/to/libnDPI/root/directory` @@ -137,11 +146,6 @@ e.g.: `./test/run_tests.sh ${HOME}/git/nDPI` - -For out-of-source builds, you'll need to specify a path to nDPId-test as well with: - -`/test/run_tests.sh /path/to/libnDPI/root/directory /path/to/nDPId-test-executable` - -For in-source builds and if CMake was configured with BUILD_NDPI=ON you can just type: - -`/test/run_tests.sh` +Remember that all test results are tied to a specific libnDPI commit hash +as part of the `git submodule`. Using `test/run_tests.s` for other commit hashes +will most likely result in PCAP diff's. |