summaryrefslogtreecommitdiff
path: root/tests/scan-results.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scan-results.sh')
-rwxr-xr-xtests/scan-results.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/scan-results.sh b/tests/scan-results.sh
new file mode 100755
index 00000000..f3ebcbc4
--- /dev/null
+++ b/tests/scan-results.sh
@@ -0,0 +1,18 @@
+#!/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" ;;
+ *AddressSanitizer*heap-use-after-free*) echo "RUNTIME ERROR (use after free): $last" ;;
+ *Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
+ *) : ;;
+ esac
+ done < "$i"
+done