@@ -622,11 +622,11 @@ println "<daemon: " + gradle.services.get(org.gradle.internal.environment.Gradle
622
622
lines. get(1 ) == " version,Gradle ${ minimalSupportedGradleVersion} "
623
623
lines. get(2 ) == " tasks,help"
624
624
lines. get(3 ) == " value,execution"
625
- lines. get(4 ). matches(" warm-up build #1,\\ d+ " )
626
- lines. get(9 ). matches(" warm-up build #6,\\ d+ " )
627
- lines. get(10 ). matches(" measured build #1,\\ d+ " )
628
- lines. get(11 ). matches(" measured build #2,\\ d+ " )
629
- lines. get(19 ). matches(" measured build #10,\\ d+ " )
625
+ lines. get(4 ). matches(/ warm-up build #1,\d +(?: \.\d +)? / )
626
+ lines. get(9 ). matches(/ warm-up build #6,\d +(?: \.\d +)? / )
627
+ lines. get(10 ). matches(/ measured build #1,\d +(?: \.\d +)? / )
628
+ lines. get(11 ). matches(/ measured build #2,\d +(?: \.\d +)? / )
629
+ lines. get(19 ). matches(/ measured build #10,\d +(?: \.\d +)? / )
630
630
}
631
631
632
632
def " runs benchmarks using single scenario defined in scenario file" () {
@@ -699,8 +699,8 @@ println "<dry-run: " + gradle.startParameter.dryRun + ">"
699
699
lines. get(1 ) == " version,Gradle 3.0,Gradle ${ minimalSupportedGradleVersion} ,Gradle ${ minimalSupportedGradleVersion} "
700
700
lines. get(2 ) == " tasks,assemble,assemble,clean assemble"
701
701
lines. get(3 ) == " value,execution,execution,execution"
702
- lines. get(4 ). matches(" warm-up build #1,\\ d+, \\ d+, \\ d+ " )
703
- lines. get(5 ). matches(" measured build #1,\\ d+, \\ d+, \\ d+ " )
702
+ lines. get(4 ). matches(/ warm-up build #1,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
703
+ lines. get(5 ). matches(/ measured build #1,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
704
704
}
705
705
706
706
def " can define system property when benchmarking using tooling API" () {
@@ -1110,11 +1110,11 @@ help {
1110
1110
lines. get(1 ) == " version,buck,buck,buck"
1111
1111
lines. get(2 ) == " tasks,,//some/target,"
1112
1112
lines. get(3 ) == " value,execution,execution,execution"
1113
- lines. get(4 ). matches(" warm-up build #1,\\ d+, \\ d+, \\ d+ " )
1114
- lines. get(9 ). matches(" warm-up build #6,\\ d+, \\ d+, \\ d+ " )
1115
- lines. get(10 ). matches(" measured build #1,\\ d+, \\ d+, \\ d+ " )
1116
- lines. get(11 ). matches(" measured build #2,\\ d+, \\ d+, \\ d+ " )
1117
- lines. get(19 ). matches(" measured build #10,\\ d+, \\ d+, \\ d+ " )
1113
+ lines. get(4 ). matches(/ warm-up build #1,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
1114
+ lines. get(9 ). matches(/ warm-up build #6,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
1115
+ lines. get(10 ). matches(/ measured build #1,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
1116
+ lines. get(11 ). matches(/ measured build #2,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
1117
+ lines. get(19 ). matches(/ measured build #10,\d +(?: \.\d +)?, \d +(?: \.\d +)?, \d +(?: \.\d +)? / )
1118
1118
}
1119
1119
1120
1120
def " cannot profile a buck build" () {
@@ -1210,11 +1210,11 @@ buildTarget {
1210
1210
lines. get(1 ) == " version,bazel"
1211
1211
lines. get(2 ) == " tasks,some:assemble"
1212
1212
lines. get(3 ) == " value,execution"
1213
- lines. get(4 ). matches(" warm-up build #1,\\ d+ " )
1214
- lines. get(9 ). matches(" warm-up build #6,\\ d+ " )
1215
- lines. get(10 ). matches(" measured build #1,\\ d+ " )
1216
- lines. get(11 ). matches(" measured build #2,\\ d+ " )
1217
- lines. get(19 ). matches(" measured build #10,\\ d+ " )
1213
+ lines. get(4 ). matches(/ warm-up build #1,\d +(?: \.\d +)? / )
1214
+ lines. get(9 ). matches(/ warm-up build #6,\d +(?: \.\d +)? / )
1215
+ lines. get(10 ). matches(/ measured build #1,\d +(?: \.\d +)? / )
1216
+ lines. get(11 ). matches(/ measured build #2,\d +(?: \.\d +)? / )
1217
+ lines. get(19 ). matches(/ measured build #10,\d +(?: \.\d +)? / )
1218
1218
}
1219
1219
1220
1220
def " cannot profile a bazel build" () {
@@ -1305,11 +1305,11 @@ buildGoal {
1305
1305
lines. get(1 ) == " version,maven"
1306
1306
lines. get(2 ) == " tasks,-v"
1307
1307
lines. get(3 ) == " value,execution"
1308
- lines. get(4 ). matches(" warm-up build #1,\\ d+ " )
1309
- lines. get(9 ). matches(" warm-up build #6,\\ d+ " )
1310
- lines. get(10 ). matches(" measured build #1,\\ d+ " )
1311
- lines. get(11 ). matches(" measured build #2,\\ d+ " )
1312
- lines. get(19 ). matches(" measured build #10,\\ d+ " )
1308
+ lines. get(4 ). matches(/ warm-up build #1,\d +(?: \.\d +)? / )
1309
+ lines. get(9 ). matches(/ warm-up build #6,\d +(?: \.\d +)? / )
1310
+ lines. get(10 ). matches(/ measured build #1,\d +(?: \.\d +)? / )
1311
+ lines. get(11 ). matches(/ measured build #2,\d +(?: \.\d +)? / )
1312
+ lines. get(19 ). matches(/ measured build #10,\d +(?: \.\d +)? / )
1313
1313
}
1314
1314
1315
1315
def " clears build cache when asked" () {
0 commit comments