X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=build-scripts%2Ftest-recursor;h=9f7b35a672a15f25f18f7e9586bd8f7716fd7ea4;hb=8bb2c0db13560e1cc8a021947891a4f2600a0b9f;hp=608775c5a6282932c1aaf7468bb11875e489ce33;hpb=45dcf5510d76d64da1f9d6b5ada98284a4a7add1;p=thirdparty%2Fpdns.git diff --git a/build-scripts/test-recursor b/build-scripts/test-recursor index 608775c5a6..9f7b35a672 100755 --- a/build-scripts/test-recursor +++ b/build-scripts/test-recursor @@ -44,12 +44,23 @@ EXIT=0 ./start.sh sleep 3 svstat configs/* +## prints the logs of supervised processes reported as running for less than 3 secs +for config in configs/* ; do + secs=$(svstat ${config} | perl -pe 's!.* (\d+) seconds!\1!') + if [ -n "${secs}" ] && [ ${secs} -lt 3 ] ; then + echo "-----------------" + echo "Logs of ${config}" + echo "-----------------" + cat ${config}/logfile + fi +done ./runtests || EXIT=1 ./stop.sh sleep 3 ./clean.sh cd ../regression-tests.recursor-dnssec -./runtests || EXIT=1 +./runtests -e SNMP || EXIT=1 +./printlogs.py || true exit $EXIT