annotate 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
rev   line source
duke@0 1 #
duke@0 2 # matching the following output specified as a pattern that verifies
duke@0 3 # that the numerical values conform to a specific pattern, rather than
duke@0 4 # specific values.
duke@0 5 #
duke@0 6 # Compiled Size Type Method
duke@0 7 # 45 131 1 sun/misc/FloatingDecimal countBits
duke@0 8
duke@0 9 BEGIN {
duke@0 10 headerlines=0; datalines=0; totallines=0
duke@0 11 }
duke@0 12
duke@0 13 /^Compiled Size Type Method$/ {
duke@0 14 headerlines++;
duke@0 15 }
duke@0 16
duke@0 17 /^[ ]*[0-9]+[ ]*[0-9]+[ ]*[0-9]+[ ]*[a-zA-Z_\$\+]+[a-zA-Z0-9_\$\+\/]* [a-zA-Z_\$\+]+[a-zA-Z0-9_\$\+]*$/ {
duke@0 18 datalines++;
duke@0 19 }
duke@0 20
duke@0 21 /^[ ]*[0-9]+[ ]*[0-9]+[ ]*[0-9]+[ ]*[a-zA-Z_\$\+]+[a-zA-Z0-9_\$\+\/]* <init>$/ {
duke@0 22 datalines++;
duke@0 23 }
duke@0 24
duke@0 25 { totallines++; print $0 }
duke@0 26
duke@0 27 END {
duke@0 28 if ((headerlines == 1) && (datalines == 1) && (totallines == 2)) {
duke@0 29 exit 0
duke@0 30 }
duke@0 31 else {
duke@0 32 exit 1
duke@0 33 }
duke@0 34 }