author | goetz |
Thu, 14 Jun 2018 14:32:03 +0200 | |
changeset 50580 | eb0287b637bd |
parent 49377 | ecd91135d645 |
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 |
# |
|
49377
ecd91135d645
8153333: [REDO] STW phases at Concurrent GC should count in PerfCounte
ysuenaga
parents:
47216
diff
changeset
|
6 |
# S0 S1 E O M CCS YGC YGCT FGC FGCT CGC CGCT GCT LGCC GCC |
50580
eb0287b637bd
8204654: [testbug] Fix pattern matching in jstat tests.
goetz
parents:
49377
diff
changeset
|
7 |
# 0.00 0.00 0.00 9.97 90.94 87.70 2 0.013 0 0.000 0 0.000 0.013 Allocation Failure No GC |
eb0287b637bd
8204654: [testbug] Fix pattern matching in jstat tests.
goetz
parents:
49377
diff
changeset
|
8 |
# 0.00 0.00 82.15 0.00 - - 0 0.000 0 0.000 - - 0.000 No GC No GC |
2 | 9 |
|
10 |
||
11 |
BEGIN { |
|
12 |
headerlines=0; datalines=0; totallines=0 |
|
13 |
} |
|
14 |
||
49377
ecd91135d645
8153333: [REDO] STW phases at Concurrent GC should count in PerfCounte
ysuenaga
parents:
47216
diff
changeset
|
15 |
/^ S0 S1 E O M CCS YGC YGCT FGC FGCT CGC CGCT GCT LGCC GCC $/ { |
2 | 16 |
headerlines++; |
17 |
} |
|
18 |
||
19 |
# The following pattern does not verify the validity of the gc cause |
|
20 |
# string as the values can vary depending on conditions out of our |
|
21 |
# control. To accomodate this variability, the pattern matcher simply |
|
22 |
# detects that there are two strings that match a specific pattern |
|
23 |
# where the first character is a letter followed by a sequence of zero |
|
24 |
# or more letters and spaces. It also provides for the ".", "(", and ")" |
|
25 |
# characters to allow for the string "System.gc()". |
|
26 |
# |
|
50580
eb0287b637bd
8204654: [testbug] Fix pattern matching in jstat tests.
goetz
parents:
49377
diff
changeset
|
27 |
/^[ ]*[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]+[ ]*[a-zA-Z]+[a-zA-Z \.\(\)]*[ ]*[a-zA-Z]+[a-zA-Z \.\(\)]*$/ { |
2 | 28 |
datalines++; |
29 |
} |
|
30 |
||
31 |
{ totallines++; print $0 } |
|
32 |
||
33 |
END { |
|
22562
e909d64b8dd8
6545321: [TESTBUG] jstatLineCounts4.sh has to be resilient to unexpected output
sla
parents:
20763
diff
changeset
|
34 |
if ((headerlines == 1) && (datalines == 1)) { |
2 | 35 |
exit 0 |
36 |
} |
|
37 |
else { |
|
38 |
exit 1 |
|
39 |
} |
|
40 |
} |