btrfs-progs: tests: add script to scan results for some known runtime errors
authorDavid Sterba <dsterba@suse.com>
Fri, 23 Sep 2016 13:51:28 +0000 (15:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 13:07:21 +0000 (15:07 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
tests/scan-results.sh [new file with mode: 0755]

diff --git a/tests/scan-results.sh b/tests/scan-results.sh
new file mode 100755 (executable)
index 0000000..743b968
--- /dev/null
@@ -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