|
30 | 30 | from os.path import join
|
31 | 31 |
|
32 | 32 | import mx
|
| 33 | +import mx_subst |
33 | 34 | from mx_benchmark import StdOutRule, VmRegistry, java_vm_registry, Vm, GuestVm, VmBenchmarkSuite, AveragingBenchmarkMixin
|
34 | 35 | from mx_graalpython_bench_param import BENCHMARKS, HARNESS_PATH
|
35 | 36 |
|
@@ -155,10 +156,14 @@ def run(self, cwd, args):
|
155 | 156 | # '-Dgraal.TruffleCompilationExceptionsAreFatal=true'
|
156 | 157 | ]
|
157 | 158 |
|
158 |
| - vm_args = [ |
| 159 | + dists = ["GRAALPYTHON", "GRAALPYTHON-LAUNCHER"] |
| 160 | + if mx.suite("sulong", fatalIfMissing=False): |
| 161 | + dists.append('SULONG') |
| 162 | + if mx.suite("sulong-managed", fatalIfMissing=False): |
| 163 | + dists.append('SULONG_MANAGED') |
| 164 | + |
| 165 | + vm_args = mx.get_runtime_jvm_args(dists) + [ |
159 | 166 | "-Dpython.home=%s" % join(_graalpython_suite.dir, "graalpython"),
|
160 |
| - '-cp', |
161 |
| - mx.classpath(["com.oracle.graal.python", "com.oracle.graal.python.shell"]), |
162 | 167 | "com.oracle.graal.python.shell.GraalPythonMain"
|
163 | 168 | ]
|
164 | 169 |
|
@@ -265,8 +270,8 @@ def benchmarks(self):
|
265 | 270 |
|
266 | 271 | def successPatterns(self):
|
267 | 272 | return [
|
268 |
| - re.compile(r"^### iteration=(?P<iteration>[0-9]+), name=(?P<benchmark>[a-zA-Z0-9.\-]+), duration=(?P<time>[0-9]+(\.[0-9]+)?$)", re.MULTILINE), # pylint: disable=line-too-long |
269 |
| - re.compile(r"^@@@ name=(?P<benchmark>[a-zA-Z0-9.\-]+), duration=(?P<time>[0-9]+(\.[0-9]+)?$)", re.MULTILINE), # pylint: disable=line-too-long |
| 273 | + re.compile(r"^### iteration=(?P<iteration>[0-9]+), name=(?P<benchmark>[a-zA-Z0-9.\-_]+), duration=(?P<time>[0-9]+(\.[0-9]+)?$)", re.MULTILINE), # pylint: disable=line-too-long |
| 274 | + re.compile(r"^@@@ name=(?P<benchmark>[a-zA-Z0-9.\-_]+), duration=(?P<time>[0-9]+(\.[0-9]+)?$)", re.MULTILINE), # pylint: disable=line-too-long |
270 | 275 | ]
|
271 | 276 |
|
272 | 277 | def failurePatterns(self):
|
|
0 commit comments