MCPcopy Create free account
hub / github.com/apache/fory / run_graalvm_test

Function run_graalvm_test

ci/tasks/java.py:355–377  ·  view source on GitHub ↗

Run GraalVM tests.

()

Source from the content-addressed store, hash-verified

353
354
355def run_graalvm_test():
356 """Run GraalVM tests."""
357 logging.info("Start GraalVM tests")
358 java_major = get_jdk_major_version()
359 if java_major is not None and java_major >= 25:
360 os.environ["JDK_JAVA_OPTIONS"] = " ".join(jdk25_javac_options())
361 else:
362 os.environ.pop("JDK_JAVA_OPTIONS", None)
363
364 common.cd_project_subdir("java")
365 common.exec_cmd(
366 "mvn -T10 -B --no-transfer-progress clean install -DskipTests -pl '!:fory-testsuite'"
367 )
368
369 logging.info("Start to build graalvm native image")
370 common.cd_project_subdir("integration_tests/graalvm_tests")
371 common.exec_cmd("mvn -DskipTests=true --no-transfer-progress -Pnative package")
372
373 logging.info("Built graalvm native image")
374 logging.info("Start to run graalvm native image")
375 common.exec_cmd("./target/main")
376
377 logging.info("Execute graalvm tests succeed!")
378
379
380def run_release():

Callers 1

runFunction · 0.85

Calls 4

get_jdk_major_versionFunction · 0.85
jdk25_javac_optionsFunction · 0.85
infoMethod · 0.65
popMethod · 0.45

Tested by

no test coverage detected