annotate test/sun/tools/jstat/classloadOutput1.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
mchung@2465 1 #
mchung@2465 2 # matching the following output specified as a pattern that verifies
mchung@2465 3 # that the numerical values conform to a specific pattern, rather than
mchung@2465 4 # specific values.
mchung@2465 5 #
mchung@2465 6 # Loaded Time Inited Time Shared Kbytes LoadTime SysClass Kbytes LoadTime Lookup Parse Linked Time Verified Time AppClass Kbytes AppCL DefineClass Time FindClass Time Delegation URLCL Read
mchung@2465 7 # 956 0.115 777 0.032 0 0.0 0.000 956 3437.5 0.085 0.013 0.045 918 0.032 917 0.011 13 1.0 0.003 1 0.000 1 0.004 0.005 0.000
mchung@2465 8 #
mchung@2465 9
mchung@2465 10 BEGIN {
mchung@2465 11 headerlines=0; datalines=0; totallines=0
mchung@2465 12 }
mchung@2465 13
mchung@2465 14 /^Loaded Time Inited Time Shared Kbytes LoadTime SysClass Kbytes LoadTime Lookup Parse Linked Time Verified Time AppClass Kbytes AppCL DefineClass Time FindClass Time Delegation URLCL Read$/ {
mchung@2465 15 headerlines++;
mchung@2465 16 }
mchung@2465 17
mchung@2465 18 /^[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9][ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9][ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9][ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+$/ {
mchung@2465 19 datalines++;
mchung@2465 20 }
mchung@2465 21
mchung@2465 22 { totallines++; print $0 }
mchung@2465 23
mchung@2465 24 END {
mchung@2465 25 if ((headerlines == 1) && (datalines == 1) && (totallines == 2)) {
mchung@2465 26 exit 0
mchung@2465 27 }
mchung@2465 28 else {
mchung@2465 29 exit 1
mchung@2465 30 }
mchung@2465 31 }