diff --git a/tests/scan-results.sh b/tests/scan-results.sh new file mode 100755 index 00000000..743b968b --- /dev/null +++ b/tests/scan-results.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# look for some error messages in all test logs + +for i in *.txt; do + echo "Scanning $i" + last= + while read line; do + case "$line" in + ===\ Entering*) last="$line" ;; + *Assertion*failed*) echo "ASSERTION FAILED: $last" ;; + *runtime\ error*) echo "RUNTIME ERROR (sanitizer): $last" ;; + *) : ;; + esac + done < "$i" +done