File: reduce-test-diff.awk

package info (click to toggle)
gcc-3.3 1%3A3.3.6ds1-28
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 25,812 kB
  • ctags: 262
  • sloc: sh: 10,321; makefile: 1,050; perl: 155; awk: 23; cpp: 14
file content (33 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (91)
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
}