Skip to content

Commit a10ff75

Browse files
committed
Add standalone pointsto unittests to gate.
1 parent fceef10 commit a10ff75

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
PRIMARY: "substratevm"
123123
- env:
124124
JDK_VERSION: "latest"
125-
GATE_TAGS: "build,helloworld,native_unittests"
125+
GATE_TAGS: "build,helloworld,native_unittests,standalone_pointsto_unittests"
126126
PRIMARY: "substratevm"
127127
PIP_PACKAGES: "jsonschema==4.6.1"
128128
- os: ubuntu-24.04

substratevm/ci/ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"style-fullbuild": mxgate("fullbuild,style,nativeimagehelp,check_libcontainer_annotations,check_libcontainer_namespace") + eclipse + jdt + spotbugs + maven + mx_build_exploded + gdb("14.2") + platform_spec(no_jobs) + platform_spec({
127127
"linux:amd64:jdk-latest": tier1 + t("30:00"),
128128
}),
129-
"basics": mxgate("build,helloworld,native_unittests,truffle_unittests,debuginfotest,hellomodule,java_agent,condconfig") + maven + jsonschema + platform_spec(no_jobs) + platform_spec({
129+
"basics": mxgate("build,helloworld,native_unittests,standalone_pointsto_unittests,truffle_unittests,debuginfotest,hellomodule,java_agent,condconfig") + maven + jsonschema + platform_spec(no_jobs) + platform_spec({
130130
"linux:amd64:jdk-latest": tier2 + partial(2) + gdb("14.2") + t("40:00"),
131131
"windows:amd64:jdk-latest": tier3 + t("1:30:00"),
132132
}) + variants({

substratevm/mx.substratevm/mx_substratevm.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def __getattr__(self, name):
208208
GraalTags = Tags([
209209
'helloworld',
210210
'debuginfotest',
211+
'standalone_pointsto_unittests',
211212
'native_unittests',
212213
'build',
213214
'benchmarktest',
@@ -440,6 +441,16 @@ def svm_gate_body(args, tasks):
440441
with native_image_context(IMAGE_ASSERTION_FLAGS) as native_image:
441442
gdbdebughelperstest(['--output-path', svmbuild_dir()] + args.extra_image_builder_arguments)
442443

444+
with Task('standalone pointsto unittests', tasks, tags=[GraalTags.standalone_pointsto_unittests]) as t:
445+
if t:
446+
if '--static' in args.extra_image_builder_arguments:
447+
mx.warn('Skipping standalone pointsto unittests if --static.')
448+
elif mx.is_windows():
449+
mx.warn('Skipping standalone pointsto unittests on Windows.')
450+
else:
451+
jvm_unittest(['--record-results', '--print-failed', 'failed.txt',
452+
'--use-graalvm'] + args.extra_image_builder_arguments + ['com.oracle.graal.pointsto.standalone.test'])
453+
443454
with Task('native unittests', tasks, tags=[GraalTags.native_unittests]) as t:
444455
if t:
445456
with native_image_context(IMAGE_ASSERTION_FLAGS) as native_image:

0 commit comments

Comments
 (0)