diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-03-24 11:29:26 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-03-24 11:33:04 +0100 |
commit | 77b4b88b1469161c19a3f6e5a319967a3f4445e9 (patch) | |
tree | 2e767185134a90beb14e5898261f3fdb49a83cd3 /test/run_tests.sh | |
parent | e835d36f63c337fa0546fcdf2c3b46261851de68 (diff) |
Added diff'able nDPId-test JSON dumps and travis-ci integration.
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, 5 insertions, 0 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh index 918767c8d..51261ecb5 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -25,6 +25,7 @@ EOF cd "${nDPI_TEST_DIR}" mkdir -p /tmp/nDPId-test-stderr set +e +RETVAL=0 for pcap_file in $(ls *.pcap*); do printf '%s' "${pcap_file}" @@ -42,10 +43,14 @@ for pcap_file in $(ls *.pcap*); do "${MYDIR}/results/${pcap_file}.out.new" mv -v "${MYDIR}/results/${pcap_file}.out.new" \ "${MYDIR}/results/${pcap_file}.out" + RETVAL=1 fi else printf ' [%s]\n' 'FAIL' + RETVAL=1 fi rm -f "${MYDIR}/results/${pcap_file}.out.new" done + +exit ${RETVAL} |