summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-19 07:43:07 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-19 07:43:07 +1000
commitd7423017265c5ae6d0be39340feb6c9f016b1f71 (patch)
tree526e54e9ffcb0bd38e744b7fa87821db5a3922ef /regress/test-exec.sh
parent22b9b3e944880db906c6ac5527c4228bd92b293a (diff)
Show valgrind results and error counts.
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh20
1 files changed, 13 insertions, 7 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index f699f34d6..970810301 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -591,15 +591,21 @@ cleanup
591if [ "x$USE_VALGRIND" != "x" ]; then 591if [ "x$USE_VALGRIND" != "x" ]; then
592 # wait for any running process to complete 592 # wait for any running process to complete
593 wait; sleep 1 593 wait; sleep 1
594 VG_ERROR=0 594 VG_RESULTS=$(find $OBJ/valgrind-out -type f -print)
595 for i in $OBJ/valgrind-out/*; do 595 VG_RESULT_COUNT=0
596 if grep "ERROR SUMMARY" $i >/dev/null && \ 596 VG_ERROR_COUNT=0
597 ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then 597 for i in $VG_RESULTS; do
598 RESULT=1 598 if grep "ERROR SUMMARY" $i >/dev/null; then
599 verbose valgrind failure $i 599 VG_RESULT_COUNT=$(($VG_RESULT_COUNT + 1))
600 cat $i 600 if ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then
601 VG_ERROR_COUNT=$(($VG_ERROR_COUNT + 1))
602 RESULT=1
603 verbose valgrind failure $i
604 cat $i
605 fi
601 fi 606 fi
602 done 607 done
608 verbose valgrind results $VG_RESULT_COUNT errors $VG_ERROR_COUNT
603fi 609fi
604 610
605if [ $RESULT -eq 0 ]; then 611if [ $RESULT -eq 0 ]; then