File: reduce-test-diff.awk

package info (click to toggle)
gcc-4.8 4.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 587,180 kB
  • ctags: 425
  • sloc: makefile: 65,711; sh: 1,248; perl: 165; awk: 23; cpp: 14
file content (33 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (70)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /usr/bin/gawk -f

BEGIN {
	skip=0
	warn=0
}

/^-(FAIL|ERROR|UNRESOLVED|WARNING)/ {
	next
}

# only compare gcc, g++, g77 and objc results
/=== treelang tests ===/ {
	skip=1
}

# omit extra files appended to test-summary
/^\+Compiler version/ {
	skip=1
}

skip == 0 {
	print
	next
}

/^\+(FAIL|ERROR|UNRESOLVED|WARNING)/ {
	warn=1
}

END {
	exit warn
}