File: scan-results.sh

package info (click to toggle)
btrfs-progs 5.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,028 kB
  • sloc: ansic: 96,117; sh: 8,146; python: 1,149; makefile: 811
file content (20 lines) | stat: -rwxr-xr-x 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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