|
26 | 26 | # |
27 | 27 | # ---------------------------------------------------------------------------------------------------- |
28 | 28 |
|
29 | | -import os, shutil, tarfile |
| 29 | +import os, shutil, tarfile, tempfile |
30 | 30 | from os.path import join, exists, getmtime |
31 | 31 |
|
32 | 32 | import mx_graal_js_benchmark |
@@ -71,14 +71,14 @@ def _graal_js_gate_runner(args, tasks): |
71 | 71 | js(['-Dpolyglot.js.profile-time=true', '-e', '""']) |
72 | 72 |
|
73 | 73 | webassemblyTestSuite = 'com.oracle.truffle.js.test.suite.WebAssemblySimpleTestSuite' |
74 | | - with Task('UnitTests', tasks, tags=[GraalJsDefaultTags.default, GraalJsDefaultTags.all, GraalJsDefaultTags.coverage], report=True) as t: |
| 74 | + with Task('UnitTests', tasks, tags=[GraalJsDefaultTags.default, GraalJsDefaultTags.all], report=True) as t: |
75 | 75 | if t: |
76 | 76 | noWebAssemblyTestSuite = '^(?!' + webassemblyTestSuite + ')' |
77 | 77 | commonOptions = ['--enable-timing', '--very-verbose', '--suite', _suite.name] |
78 | 78 | unittest(['--regex', noWebAssemblyTestSuite] + commonOptions, test_report_tags={'task': t.title}) |
79 | 79 | unittest(['--regex', 'ZoneRulesProviderTest', '-Djava.time.zone.DefaultZoneRulesProvider=com.oracle.truffle.js.test.runtime.SimpleZoneRulesProvider'] + commonOptions, test_report_tags={'task': t.title}) |
80 | 80 |
|
81 | | - with Task('WebAssemblyTests', tasks, tags=[GraalJsDefaultTags.webassembly, GraalJsDefaultTags.all, GraalJsDefaultTags.coverage], report=True) as t: |
| 81 | + with Task('WebAssemblyTests', tasks, tags=['webassembly', GraalJsDefaultTags.all], report=True) as t: |
82 | 82 | if t: |
83 | 83 | unittest(['--regex', webassemblyTestSuite, '--enable-timing', '--very-verbose', '--suite', _suite.name], test_report_tags={'task': t.title}) |
84 | 84 |
|
@@ -111,9 +111,15 @@ def _graal_js_gate_runner(args, tasks): |
111 | 111 | if t: |
112 | 112 | gateTestCommands[testCommandName](gateTestConfigs[testConfigName]) |
113 | 113 |
|
114 | | - with Task('TCK tests', tasks, tags=[GraalJsDefaultTags.all, GraalJsDefaultTags.tck, GraalJsDefaultTags.coverage], report=True) as t: |
| 114 | + with Task('TCK tests', tasks, tags=[GraalJsDefaultTags.all, GraalJsDefaultTags.tck], report=True) as t: |
115 | 115 | if t: |
116 | | - unittest(['com.oracle.truffle.tck.tests'], test_report_tags={'task': t.title}) |
| 116 | + import mx_gate, mx_truffle |
| 117 | + jsonResultsFile = tempfile.NamedTemporaryFile(delete=False, suffix='.json.gz').name |
| 118 | + try: |
| 119 | + mx_truffle._tck(['--json-results=' + jsonResultsFile]) |
| 120 | + mx_gate.make_test_report(jsonResultsFile, tags={'task': t.title}) |
| 121 | + finally: |
| 122 | + os.unlink(jsonResultsFile) |
117 | 123 |
|
118 | 124 | prepend_gate_runner(_suite, _graal_js_pre_gate_runner) |
119 | 125 | add_gate_runner(_suite, _graal_js_gate_runner) |
|
0 commit comments