comparison test/sun/tools/jstat/printCompilationOutput1.awk @ 11752:12ae7aa5aaa2

8146993: Several javax/management/remote/mandatory regression tests fail after JDK-8138811 Reviewed-by: dfuchs, valeriep
author jbachorik
date Fri, 05 Feb 2016 11:02:08 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e440c932a89a
1 #
2 # matching the following output specified as a pattern that verifies
3 # that the numerical values conform to a specific pattern, rather than
4 # specific values.
5 #
6 # Compiled Size Type Method
7 # 45 131 1 sun/misc/FloatingDecimal countBits
8
9 BEGIN {
10 headerlines=0; datalines=0; totallines=0
11 }
12
13 /^Compiled Size Type Method$/ {
14 headerlines++;
15 }
16
17 /^[ ]*[0-9]+[ ]*[0-9]+[ ]*[0-9]+[ ]*[a-zA-Z_\$\+]+[a-zA-Z0-9_\$\+\/]* [a-zA-Z_\$\+]+[a-zA-Z0-9_\$\+]*$/ {
18 datalines++;
19 }
20
21 /^[ ]*[0-9]+[ ]*[0-9]+[ ]*[0-9]+[ ]*[a-zA-Z_\$\+]+[a-zA-Z0-9_\$\+\/]* <init>$/ {
22 datalines++;
23 }
24
25 { totallines++; print $0 }
26
27 END {
28 if ((headerlines == 1) && (datalines == 1) && (totallines == 2)) {
29 exit 0
30 }
31 else {
32 exit 1
33 }
34 }