diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-06-18 13:31:37 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-06-18 13:37:44 +0200 |
commit | 114365a48012609d3d7930157b1b65d01face636 (patch) | |
tree | 03697bf3620035e818b864eaa9a0a106e0d93027 /test/run_tests.sh | |
parent | db87d45edb175572112aa08840f08bc7c61cadcb (diff) |
Enable memory profiling for nDPId-test.
* print a summary
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'test/run_tests.sh')
-rwxr-xr-x | test/run_tests.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh index f9612ba90..a97ec52fa 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -90,7 +90,7 @@ for pcap_file in *.pcap *.pcapng *.cap; do printf "%-${LINE_SPACES}s\t" "${pcap_file}" - ${nDPId_test_EXEC} "${pcap_file}" \ + PRINT_SUMMARY=y ${nDPId_test_EXEC} "${pcap_file}" \ >"${MYDIR}/results/${pcap_file}.out.new" \ 2>>"/tmp/nDPId-test-stderr/${pcap_file}.out" nDPId_test_RETVAL=$? @@ -155,7 +155,8 @@ function validate_results() return 0 fi - cat "${result_file}" | ${NETCAT_EXEC} & + # Note that the grep command is required as we generate a summary in the results file. (PRINT_SUMMARY=y) + cat "${result_file}" | grep -vE '^~~.*$' | ${NETCAT_EXEC} & nc_pid=$! printf '%s\n' "-- ${validator_exec}" >>"/tmp/nDPId-test-stderr/${pcap_file}.out" ${validator_exec} 2>>"/tmp/nDPId-test-stderr/${pcap_file}.out" |