summaryrefslogtreecommitdiff
path: root/test/run_tests.sh
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-03-24 11:29:26 +0100
committerToni Uhlig <matzeton@googlemail.com>2021-03-24 11:33:04 +0100
commit77b4b88b1469161c19a3f6e5a319967a3f4445e9 (patch)
tree2e767185134a90beb14e5898261f3fdb49a83cd3 /test/run_tests.sh
parente835d36f63c337fa0546fcdf2c3b46261851de68 (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-xtest/run_tests.sh5
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}