summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/scan-results.sh16
1 files changed, 16 insertions, 0 deletions
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