Run GraalVM tests.
()
| 353 | |
| 354 | |
| 355 | def 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 | |
| 380 | def run_release(): |
no test coverage detected