diff options
author | Luca Deri <deri@ntop.org> | 2021-05-17 20:55:06 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-05-17 20:55:06 +0200 |
commit | 43a8576efbf1de97fd5e5c266f55a2b8b684ee25 (patch) | |
tree | 80bd987b02c592551476f55582826bff93f93512 /example/ndpiReader.c | |
parent | 1ec621c85b9411cc611652fd57a892cfef478af3 (diff) |
Reworked human readeable string search in flows
Removed fragment manager code
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 966b85869..08d39fb0b 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -4244,7 +4244,7 @@ int original_main(int argc, char **argv) { #else int main(int argc, char **argv) { #endif - int i; + int i, skip_unit_tests = 0; #ifdef DEBUG_TRACE trace = fopen("/tmp/ndpiReader.log", "a"); @@ -4266,37 +4266,39 @@ int original_main(int argc, char **argv) { return(-1); } + if(!skip_unit_tests) { #ifndef DEBUG_TRACE - /* Skip tests when debugging */ + /* Skip tests when debugging */ #ifdef HW_TEST - hwUnitTest2(); + hwUnitTest2(); #endif #ifdef STRESS_TEST - desUnitStressTest(); - exit(0); + desUnitStressTest(); + exit(0); #endif - sesUnitTest(); - desUnitTest(); - - /* Internal checks */ - // binUnitTest(); - //hwUnitTest(); - jitterUnitTest(); - rsiUnitTest(); - hashUnitTest(); - dgaUnitTest(); - hllUnitTest(); - bitmapUnitTest(); - automataUnitTest(); - analyzeUnitTest(); - ndpi_self_check_host_match(); - analysisUnitTest(); - rulesUnitTest(); + sesUnitTest(); + desUnitTest(); + + /* Internal checks */ + // binUnitTest(); + //hwUnitTest(); + jitterUnitTest(); + rsiUnitTest(); + hashUnitTest(); + dgaUnitTest(); + hllUnitTest(); + bitmapUnitTest(); + automataUnitTest(); + analyzeUnitTest(); + ndpi_self_check_host_match(); + analysisUnitTest(); + rulesUnitTest(); #endif - + } + gettimeofday(&startup_time, NULL); memset(ndpi_thread_info, 0, sizeof(ndpi_thread_info)); |