2016-09-23 13:51:28 +00:00
|
|
|
#!/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" ;;
|
2016-11-07 12:21:34 +00:00
|
|
|
*AddressSanitizer*heap-use-after-free*) echo "RUNTIME ERROR (use after free): $last" ;;
|
|
|
|
*Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
|
2017-08-23 17:19:47 +00:00
|
|
|
*command\ not\ found*) echo "COMMAND NOT FOUND: $last" ;;
|
2016-09-23 13:51:28 +00:00
|
|
|
*) : ;;
|
|
|
|
esac
|
|
|
|
done < "$i"
|
|
|
|
done
|