Skip to content

Commit aa343bc

Browse files
committed
add test of debuginfo generation to gate tests
1 parent 61c0fe9 commit aa343bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

substratevm/mx.substratevm/mx_substratevm.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,19 @@ def svm_gate_body(args, tasks):
468468
cinterfacetutorial([])
469469
clinittest([])
470470

471+
with Task('image demos debuginfo', tasks, tags=[GraalTags.helloworld_debug]) as t:
472+
if t:
473+
if svm_java8():
474+
javac_image(['--output-path', svmbuild_dir()])
475+
javac_command = ['--javac-command', ' '.join(javac_image_command(svmbuild_dir()))]
476+
else:
477+
# Building javac image currently only supported for Java 8
478+
javac_command = []
479+
helloworld(['--output-path', svmbuild_dir()] + javac_command)
480+
helloworld(['--output-path', svmbuild_dir(), '--shared', '-H:GenerateDebugInfo=1']) # Build and run helloworld as shared library
481+
cinterfacetutorial([])
482+
clinittest([])
483+
471484
with Task('native unittests', tasks, tags=[GraalTags.test]) as t:
472485
if t:
473486
with tempfile.NamedTemporaryFile(mode='w') as blacklist:

0 commit comments

Comments
 (0)