btrfs-progs: build: Do not use cp -a to install library links
[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                         *AddressSanitizer*heap-use-after-free*) echo "RUNTIME ERROR (use after free): $last" ;;
14                         *LeakSanitizer:*leak*) echo "SANITIZER REPORT: memory leak: $last" ;;
15                         *Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
16                         *command\ not\ found*) echo "COMMAND NOT FOUND: $last" ;;
17                         *) : ;;
18                 esac
19         done < "$i"
20 done