From: Michał Kępień Date: Wed, 29 Jan 2020 13:50:26 +0000 (+0100) Subject: List atypical failures in system test summary X-Git-Tag: v9.16.0~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8836b381f9d4825535757f05c09011912ee04fc;p=thirdparty%2Fbind9.git List atypical failures in system test summary Each system test can be marked as failed not only due to some tested component(s) not behaving as expected, but also because of core dumps, assertion failures, and/or ThreadSanitizer reports being found among its artifacts. Make the system test summary list the tests which exhibit such atypical symptoms to more clearly present the nature of problems found. --- diff --git a/bin/tests/system/testsummary.sh b/bin/tests/system/testsummary.sh index a6f2bc03f91..6089b167708 100644 --- a/bin/tests/system/testsummary.sh +++ b/bin/tests/system/testsummary.sh @@ -56,6 +56,24 @@ if [ -n "${FAILED_TESTS}" ]; then status=1 fi +CRASHED_TESTS=`find . -name 'core*' -or -name '*.core' | cut -d'/' -f2 | sort -u | sed -e 's/^/I: /'` +if [ -n "${CRASHED_TESTS}" ]; then + echoinfo "I:Core dumps were found for the following system tests:" + echoinfo "${CRASHED_TESTS}" +fi + +ASSERTION_FAILED_TESTS=`find . -name named.run | xargs grep "assertion failure" | cut -d'/' -f2 | sort -u | sed -e 's/^/I: /'` +if [ -n "${ASSERTION_FAILED_TESTS}" ]; then + echoinfo "I:Assertion failures were detected for the following system tests:" + echoinfo "${ASSERTION_FAILED_TESTS}" +fi + +TSAN_REPORT_TESTS=`find . -name 'tsan.*' | cut -d'/' -f2 | sort -u | sed -e 's/^/I: /'` +if [ -n "${TSAN_REPORT_TESTS}" ]; then + echoinfo "I:ThreadSanitizer reported issues for the following system tests:" + echoinfo "${TSAN_REPORT_TESTS}" +fi + RESULTS_FOUND=`grep -c 'R:[a-z0-9_-][a-z0-9_-]*:[A-Z][A-Z]*' systests.output` TESTS_RUN=`echo "${SUBDIRS}" | wc -w` if [ "${RESULTS_FOUND}" -ne "${TESTS_RUN}" ]; then