|
84 | 84 |
|
85 | 85 | def get_jdk(forBuild=False):
|
86 | 86 | if not forBuild and mx.suite('compiler', fatalIfMissing=False):
|
87 |
| - return mx.get_jdk(tag='jvmci') |
| 87 | + return mx.get_jdk(tag='graalvm') |
88 | 88 | else:
|
89 | 89 | return mx.get_jdk()
|
90 | 90 |
|
@@ -125,24 +125,28 @@ def wabt_test_args():
|
125 | 125 |
|
126 | 126 |
|
127 | 127 | def graal_wasm_gate_runner(args, tasks):
|
| 128 | + unittest_args = [] |
| 129 | + if mx.suite('compiler', fatalIfMissing=False) is not None: |
| 130 | + unittest_args = ["--use-graalvm"] |
| 131 | + |
128 | 132 | with Task("BuildAll", tasks, tags=[GraalWasmDefaultTags.buildall]) as t:
|
129 | 133 | if t:
|
130 | 134 | mx.build(["--all"])
|
131 | 135 |
|
132 | 136 | with Task("UnitTests", tasks, tags=[GraalWasmDefaultTags.wasmtest], report=True) as t:
|
133 | 137 | if t:
|
134 |
| - unittest([*wabt_test_args(), "WasmTestSuite"], test_report_tags={'task': t.title}) |
135 |
| - unittest([*wabt_test_args(), "-Dwasmtest.sharedEngine=true", "WasmTestSuite"], test_report_tags={'task': t.title}) |
| 138 | + unittest(unittest_args + [*wabt_test_args(), "WasmTestSuite"], test_report_tags={'task': t.title}) |
| 139 | + unittest(unittest_args + [*wabt_test_args(), "-Dwasmtest.sharedEngine=true", "WasmTestSuite"], test_report_tags={'task': t.title}) |
136 | 140 |
|
137 | 141 | with Task("ExtraUnitTests", tasks, tags=[GraalWasmDefaultTags.wasmextratest], report=True) as t:
|
138 | 142 | if t:
|
139 |
| - unittest(["--suite", "wasm", "CSuite", "WatSuite"], test_report_tags={'task': t.title}) |
| 143 | + unittest(unittest_args + ["--suite", "wasm", "CSuite", "WatSuite"], test_report_tags={'task': t.title}) |
140 | 144 |
|
141 | 145 | with Task("CoverageTests", tasks, tags=[GraalWasmDefaultTags.coverage], report=True) as t:
|
142 | 146 | if t:
|
143 |
| - unittest([*wabt_test_args(), "-Dwasmtest.coverageMode=true", "WasmTestSuite"], test_report_tags={'task': t.title}) |
144 |
| - unittest([*wabt_test_args(), "-Dwasmtest.coverageMode=true", "-Dwasmtest.sharedEngine=true", "WasmTestSuite"], test_report_tags={'task': t.title}) |
145 |
| - unittest(["-Dwasmtest.coverageMode=true", "--suite", "wasm", "CSuite", "WatSuite"], test_report_tags={'task': t.title}) |
| 147 | + unittest(unittest_args + [*wabt_test_args(), "-Dwasmtest.coverageMode=true", "WasmTestSuite"], test_report_tags={'task': t.title}) |
| 148 | + unittest(unittest_args + [*wabt_test_args(), "-Dwasmtest.coverageMode=true", "-Dwasmtest.sharedEngine=true", "WasmTestSuite"], test_report_tags={'task': t.title}) |
| 149 | + unittest(unittest_args + ["-Dwasmtest.coverageMode=true", "--suite", "wasm", "CSuite", "WatSuite"], test_report_tags={'task': t.title}) |
146 | 150 |
|
147 | 151 | # This is a gate used to test that all the benchmarks return the correct results. It does not upload anything,
|
148 | 152 | # and does not run on a dedicated machine.
|
|
0 commit comments