File: reduce-test-diff.awk

package info (click to toggle)
gcc-8 8.3.0-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 90,580 kB
  • sloc: makefile: 2,207; sh: 954; python: 811; awk: 23; cpp: 14
file content (33 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (92)
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
}