summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-10-30 13:36:01 +0100
committerToni Uhlig <matzeton@googlemail.com>2023-11-03 16:38:58 +0100
commit5fb706e9a68dcd29a7a9a510068e10556451ac07 (patch)
tree112222f046f746ab14cea4bc0a640e118f12fcd0
parent5335d84fe51fef36c6e23110f7114090126037c6 (diff)
Set timeout for nDPId-test run's.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-xtest/run_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh
index 9aea9ead5..61bcfca00 100755
--- a/test/run_tests.sh
+++ b/test/run_tests.sh
@@ -138,7 +138,7 @@ for pcap_file in cfgs/*/pcap/*.pcap cfgs/*/pcap/*.pcapng cfgs/*/pcap/*.cap; do
else
STRACE_CMD=""
fi
- ${STRACE_CMD} ${nDPId_test_EXEC} "${pcap_file}" \
+ timeout --foreground -k 3 -s SIGINT 60 ${STRACE_CMD} ${nDPId_test_EXEC} "${pcap_file}" \
>${stdout_file} \
2>>${stderr_file}
nDPId_test_RETVAL=$?
@@ -164,6 +164,7 @@ for pcap_file in cfgs/*/pcap/*.pcap cfgs/*/pcap/*.pcapng cfgs/*/pcap/*.cap; do
printf '%s\n' '----------------------------------------'
printf '%s\n' "-- STDERR of ${pcap_file}: ${stderr_file}"
cat "${stderr_file}"
+ test -r "/tmp/nDPId-test-stderr/${pcap_name}.strace.out" && cat "/tmp/nDPId-test-stderr/${pcap_name}.strace.out"
TESTS_FAILED=$((TESTS_FAILED + 1))
fi
done