btrfs-progs: tests: add script to scan results for some known runtime errors
[platform/upstream/btrfs-progs.git] / tests / scan-results.sh
1 #!/bin/sh
2
3 # look for some error messages in all test logs
4
5 for i in *.txt; do
6         echo "Scanning $i"
7         last=
8         while read line; do
9                 case "$line" in
10                         ===\ Entering*) last="$line" ;;
11                         *Assertion*failed*) echo "ASSERTION FAILED: $last" ;;
12                         *runtime\ error*) echo "RUNTIME ERROR (sanitizer): $last" ;;
13                         *) : ;;
14                 esac
15         done < "$i"
16 done