diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-10-30 13:36:01 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-03 16:38:58 +0100 |
commit | 5fb706e9a68dcd29a7a9a510068e10556451ac07 (patch) | |
tree | 112222f046f746ab14cea4bc0a640e118f12fcd0 | |
parent | 5335d84fe51fef36c6e23110f7114090126037c6 (diff) |
Set timeout for nDPId-test run's.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-x | test/run_tests.sh | 3 |
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 |