summaryrefslogtreecommitdiff
path: root/tests/scan-results.sh
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2017-02-13 11:24:33 +0000
committerDimitri John Ledkov <xnox@ubuntu.com>2017-02-13 11:24:33 +0000
commit4305d024938113df5d73021a09eb2a991f54ca2f (patch)
treed9e7ecc9db14bcc1394607a9e6c644a8b93e9bea /tests/scan-results.sh
parente693f0e4ffb1776a05b78264ee3d93d5f07efede (diff)
New upstream release Closes: #849353, #817806, #854915, #845473
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 0000000..f3ebcbc
--- /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