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
|
2023-09-05 19:53:23 +00:00
|
|
|
===\ START\ TEST*) last="$line" ;;
|
2016-09-23 13:51:28 +00:00
|
|
|
*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" ;;
|
2017-08-30 14:56:23 +00:00
|
|
|
*LeakSanitizer:*leak*) echo "SANITIZER REPORT: memory leak: $last" ;;
|
2016-11-07 12:21:34 +00:00
|
|
|
*Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
|
2017-08-23 17:19:47 +00:00
|
|
|
*command\ not\ found*) echo "COMMAND NOT FOUND: $last" ;;
|
2022-08-30 19:28:41 +00:00
|
|
|
*extent\ buffer\ leak*) echo "EXTENT BUFFER LEAK: $last" ;;
|
2016-09-23 13:51:28 +00:00
|
|
|
*) : ;;
|
|
|
|
esac
|
|
|
|
done < "$i"
|
|
|
|
done
|