author | ysuenaga |
Wed, 30 Mar 2016 21:05:35 +0900 | |
changeset 37328 | b51428cf0edf |
parent 22562 | e909d64b8dd8 |
child 37329 | 1cebe5df8ece |
permissions | -rw-r--r-- |
2 | 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 |
# |
|
37328
b51428cf0edf
8151674: STW phases at Concurrent GC should count in PerfCounter
ysuenaga
parents:
22562
diff
changeset
|
6 |
# NGCMN NGCMX NGC S0CMX S0C S1CMX S1C ECMX EC YGC FGC CGC |
b51428cf0edf
8151674: STW phases at Concurrent GC should count in PerfCounter
ysuenaga
parents:
22562
diff
changeset
|
7 |
# 2176.0 7232.0 2176.0 192.0 64.0 192.0 64.0 6848.0 2048.0 1 0 0 |
b51428cf0edf
8151674: STW phases at Concurrent GC should count in PerfCounter
ysuenaga
parents:
22562
diff
changeset
|
8 |
|
2 | 9 |
|
10 |
||
11 |
BEGIN { |
|
12 |
headerlines=0; datalines=0; totallines=0 |
|
13 |
} |
|
14 |
||
37328
b51428cf0edf
8151674: STW phases at Concurrent GC should count in PerfCounter
ysuenaga
parents:
22562
diff
changeset
|
15 |
/^ NGCMN NGCMX NGC S0CMX S0C S1CMX S1C ECMX EC YGC FGC CGC $/ { |
2 | 16 |
headerlines++; |
17 |
} |
|
18 |
||
37328
b51428cf0edf
8151674: STW phases at Concurrent GC should count in PerfCounter
ysuenaga
parents:
22562
diff
changeset
|
19 |
/^[ ]*[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]+$/ { |
2 | 20 |
datalines++; |
21 |
} |
|
22 |
||
23 |
{ totallines++; print $0 } |
|
24 |
||
25 |
END { |
|
22562
e909d64b8dd8
6545321: [TESTBUG] jstatLineCounts4.sh has to be resilient to unexpected output
sla
parents:
7811
diff
changeset
|
26 |
if ((headerlines == 1) && (datalines == 1)) { |
2 | 27 |
exit 0 |
28 |
} |
|
29 |
else { |
|
30 |
exit 1 |
|
31 |
} |
|
32 |
} |