Improve reporting of results after unittest

This commit is contained in:
Petr Menšík 2022-08-30 20:21:14 +02:00
parent c0c776f659
commit e4b16641a8

View File

@ -450,6 +450,7 @@ export TSAN_OPTIONS="log_exe_name=true log_path=ThreadSanitizer exitcode=0"
pushd build
CPUS=$(lscpu -p=cpu,core | grep -v '^#' | wc -l)
THREADS="$CPUS"
export CI=true
if [ "$CPUS" -gt 16 ]; then
ORIGFILES=$(ulimit -n)
THREADS=16
@ -457,6 +458,8 @@ export TSAN_OPTIONS="log_exe_name=true log_path=ThreadSanitizer exitcode=0"
fi
make unit -j${THREADS}
e=$?
# Display details of failure
cat tests/*/test-suite.log
if [ "$e" -ne 0 ]; then
echo "ERROR: this build of BIND failed 'make unit'. Aborting."
exit $e;
@ -940,6 +943,7 @@ fi;
%changelog
* Tue Aug 30 2022 Petr Menšík <pemensik@redhat.com> - 32:9.18.6-1
- Update to 9.18.6 (#2119132)
- Report unit tests detailed results
* Thu Aug 04 2022 Petr Menšík <pemensik@redhat.com> - 32:9.18.5-2
- Use multiple threads on unit tests, but 16 at most