btrfs-progs/tests/scan-results.sh
David Sterba 4851de27f1 btrfs-progs: tests: add more sanitizer message patterns to log scanner
Signed-off-by: David Sterba <dsterba@suse.com>
2017-09-08 16:15:05 +02:00

21 lines
630 B
Bash
Executable File

#!/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" ;;
*LeakSanitizer:*leak*) echo "SANITIZER REPORT: memory leak: $last" ;;
*Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
*command\ not\ found*) echo "COMMAND NOT FOUND: $last" ;;
*) : ;;
esac
done < "$i"
done