Jlink_GenOpt_0

[2025-02-27T01:51:36.336Z] Running test Jlink_GenOpt_0 ... [2025-02-27T01:51:36.336Z] =============================================== [2025-02-27T01:51:36.336Z] Jlink_GenOpt_0 Start Time: Thu Feb 27 01:51:35 2025 Epoch Time (ms): 1740621095370 [2025-02-27T01:51:36.336Z] variation: Mode150 [2025-02-27T01:51:36.336Z] JVM_OPTIONS: -XX:+UseCompressedOops [2025-02-27T01:51:36.336Z] { \ [2025-02-27T01:51:36.336Z] echo ""; echo "TEST SETUP:"; \ [2025-02-27T01:51:36.336Z] echo "Nothing to be done for setup."; \ [2025-02-27T01:51:36.336Z] mkdir -p "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0"; \ [2025-02-27T01:51:36.336Z] cd "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0"; \ [2025-02-27T01:51:36.336Z] echo ""; echo "TESTING:"; \ [2025-02-27T01:51:36.336Z] perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF/stf.core/scripts/stf.pl -test-root="/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF;/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../../jvmtest/system/modularity/..//aqa-systemtest""" -systemtest-prereqs="/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/../../testDependency/system_lib/" -java-args=' -XX:+UseCompressedOops ' -results-root="/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0" -test=JlinkPluginTest -test-args="variant=GenOpt"; \ [2025-02-27T01:51:36.337Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "Jlink_GenOpt_0""_PASSED"; echo "-----------------------------------"; cd /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/..; rm -f -r "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0"; else echo "-----------------------------------"; echo "Jlink_GenOpt_0""_FAILED"; echo "-----------------------------------"; fi; \ [2025-02-27T01:51:36.337Z] echo ""; echo "TEST TEARDOWN:"; \ [2025-02-27T01:51:36.337Z] echo "Nothing to be done for teardown."; \ [2025-02-27T01:51:36.337Z] } 2>&1 | tee -a "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/TestTargetResult"; [2025-02-27T01:51:36.337Z] [2025-02-27T01:51:36.337Z] TEST SETUP: [2025-02-27T01:51:36.337Z] Nothing to be done for setup. [2025-02-27T01:51:36.337Z] [2025-02-27T01:51:36.337Z] TESTING: [2025-02-27T01:51:36.337Z] STF 01:51:35.746 - ========================= S T F ========================= [2025-02-27T01:51:36.337Z] systemtest-prereqs has been processed, and set to: /home/jenkins/testDependency/system_libRetrieving amount of free space on drive containing /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0 [2025-02-27T01:51:36.337Z] There is 728285 Mb free [2025-02-27T01:51:36.337Z] STF 01:51:35.766 - ================== G E N E R A T I O N ================== [2025-02-27T01:51:36.337Z] STF 01:51:35.767 - Checking JVM: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image [2025-02-27T01:51:36.337Z] STF 01:51:35.768 - Starting process to generate scripts: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -Dload.agent.path=/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/STF/stf.core/scripts/../../stf.load/bin/stf.load.jar -classpath /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/../../testDependency/system_lib//asm/asm.jar:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/../../testDependency/system_lib//asm/asm-commons.jar:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/../../testDependency/system_lib//log4j/log4j-api.jar:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/../../testDependency/system_lib//log4j/log4j-core.jar:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/stf_parameters.properties, , /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest" [2025-02-27T01:51:36.337Z] GEN stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:51:36.337Z] GEN [0.033s][warning][cds] Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "net.adoptopenjdk.stf.runner.StfClassLoader"). To use archived non-system classes, this property must not be set [2025-02-27T01:51:41.975Z] GEN 01:51:41.855 - Found test. Project: 'openjdk.test.modularity' class: 'JlinkPluginTest.class' Dir: '/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin' [2025-02-27T01:51:42.743Z] GEN 01:51:41.897 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.JlinkPluginTest' [2025-02-27T01:51:43.512Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayService [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl1 [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl2 [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hi [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2025-02-27T01:51:43.512Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/STF/stf.core/bin [2025-02-27T01:51:43.512Z] GEN /home/jenkins/testDependency/system_lib/log4j/log4j-api.jar [2025-02-27T01:51:43.512Z] GEN /home/jenkins/testDependency/system_lib/log4j/log4j-core.jar [2025-02-27T01:51:43.512Z] GEN /home/jenkins/testDependency/system_lib/junit/junit.jar [2025-02-27T01:51:43.512Z] GEN 01:51:43.067 - Using Mode NoOptions. Values = '' [2025-02-27T01:51:44.280Z] GEN 01:51:43.401 - [2025-02-27T01:51:44.280Z] GEN 01:51:43.401 - Test command summary: [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - Step Stage Command Description [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - -----+--------+-----------------+------------ [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 1 setUp cpDir Copying com.test.jlink [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 2 setUp rm Removing natives folder from com.test.jLinkDirCopy [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 3 setUp rm Removing conf folder from com.test.jLinkDirCopy [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 4 setUp jar Create com.test.jlink jar [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 5 setUp jar Create com.hello jar [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 6 setUp jmod Creating jmod of com.test.jlink module [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 7 setUp jmod Creating jmod for com.hello module [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 8 execute jlink Create runtime image using --exclude-files jlink option [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 9 execute fileCheck Check if --exclude-files removed the given files from created image [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 10 execute rm Removing the runtime image after test completion.. [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 11 execute jlink Create runtime image using --strip-native-commands jlink option [2025-02-27T01:51:44.280Z] GEN 01:51:43.402 - 12 execute fileCheck Check if --strip-native-commands removed java executable from created image [2025-02-27T01:51:44.280Z] GEN 01:51:43.443 - 13 execute rm Removing the runtime image after test completion.. [2025-02-27T01:51:44.280Z] GEN 01:51:43.443 - 14 execute jlink Create runtime image using --releae-info jlink option [2025-02-27T01:51:44.280Z] GEN 01:51:43.443 - 15 execute Run java Running adoptopenjdk.test.modularity.jlink.JlinkPluginTestReleaseInfo [2025-02-27T01:51:44.280Z] GEN 01:51:43.443 - 16 execute rm Removing the runtime image after test completion.. [2025-02-27T01:51:44.280Z] STF 01:51:43.689 - [2025-02-27T01:51:44.280Z] STF 01:51:43.689 - Script generation completed [2025-02-27T01:51:44.280Z] STF 01:51:43.689 - [2025-02-27T01:51:44.280Z] STF 01:51:43.690 - [2025-02-27T01:51:44.280Z] STF 01:51:43.690 - ======================= S E T U P ======================= [2025-02-27T01:51:44.280Z] STF 01:51:43.690 - Running setup: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/setUp.pl [2025-02-27T01:51:44.280Z] STF 01:51:43.797 - [2025-02-27T01:51:44.280Z] STF 01:51:43.797 - +------ Step 1 - Copying com.test.jlink [2025-02-27T01:51:44.280Z] STF 01:51:43.797 - | Copy a directory to a new directory [2025-02-27T01:51:44.280Z] STF 01:51:43.797 - | Source dir: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test.jlink [2025-02-27T01:51:44.280Z] STF 01:51:43.797 - | Dest dir: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/com.test.jLinkDirCopy [2025-02-27T01:51:44.280Z] STF 01:51:43.797 - | [2025-02-27T01:51:44.280Z] STF 01:51:43.803 - [2025-02-27T01:51:44.280Z] STF 01:51:43.803 - +------ Step 2 - Removing natives folder from com.test.jLinkDirCopy [2025-02-27T01:51:44.280Z] STF 01:51:43.803 - | Recursively delete a directory [2025-02-27T01:51:44.280Z] STF 01:51:43.803 - | Directory: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/com.test.jLinkDirCopy/native [2025-02-27T01:51:44.280Z] STF 01:51:43.803 - | [2025-02-27T01:51:44.280Z] STF 01:51:43.810 - [2025-02-27T01:51:44.280Z] STF 01:51:43.810 - +------ Step 3 - Removing conf folder from com.test.jLinkDirCopy [2025-02-27T01:51:44.280Z] STF 01:51:43.810 - | Recursively delete a directory [2025-02-27T01:51:44.280Z] STF 01:51:43.810 - | Directory: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/com.test.jLinkDirCopy/conf [2025-02-27T01:51:44.280Z] STF 01:51:43.810 - | [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - +------ Step 4 - Create com.test.jlink jar [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - | Create modular jar [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - | ModuleSpec: openjdk.test.modularity/bin/tests/com.test.jlink [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - | ModuleVersion: null [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - | MainClass: null [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - | HashModules: null [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - | [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/modules/4.com.test.jlink.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test.jlink . [2025-02-27T01:51:44.280Z] STF 01:51:43.811 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/4.CMJ.stderr [2025-02-27T01:51:44.281Z] STF 01:51:43.811 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/4.CMJ.stdout [2025-02-27T01:51:44.281Z] STF 01:51:43.841 - Monitoring processes: CMJ [2025-02-27T01:51:44.281Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - Monitoring Report Summary: [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - o Process CMJ ended with the expected exit code (0) [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - Created modular jar: 4.com.test.jlink.jar [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - +------ Step 5 - Create com.hello jar [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - | Create modular jar [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hello [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - | ModuleVersion: null [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - | MainClass: null [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - | HashModules: null [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - | [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/modules/5.com.hello.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello . [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/5.CMJ.stderr [2025-02-27T01:51:45.880Z] STF 01:51:45.087 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/5.CMJ.stdout [2025-02-27T01:51:45.880Z] STF 01:51:45.093 - Monitoring processes: CMJ [2025-02-27T01:51:45.880Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - Monitoring Report Summary: [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - o Process CMJ ended with the expected exit code (0) [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - Created modular jar: 5.com.hello.jar [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - +------ Step 6 - Creating jmod of com.test.jlink module [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - | Run jmod utility [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - | jmod: com.test.jlink.jmod [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - | [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jmod create --class-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/com.test.jLinkDirCopy --config /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test.jlink/conf --libs /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test.jlink/native/bin/linux /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/com.test.jlink.jmod [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/6.JMOD.stderr [2025-02-27T01:51:46.646Z] STF 01:51:46.142 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/6.JMOD.stdout [2025-02-27T01:51:46.646Z] STF 01:51:46.144 - Monitoring processes: JMOD [2025-02-27T01:51:46.646Z] JMOD stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - Monitoring Report Summary: [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - o Process JMOD ended with the expected exit code (0) [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - +------ Step 7 - Creating jmod for com.hello module [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - | Run jmod utility [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - | jmod: com.hello.jmod [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - | [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jmod create --class-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/com.hello.jmod [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/7.JMOD.stderr [2025-02-27T01:51:47.412Z] STF 01:51:47.126 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/7.JMOD.stdout [2025-02-27T01:51:47.412Z] STF 01:51:47.128 - Monitoring processes: JMOD [2025-02-27T01:51:47.412Z] JMOD stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:51:49.445Z] STF 01:51:48.208 - Monitoring Report Summary: [2025-02-27T01:51:49.445Z] STF 01:51:48.208 - o Process JMOD ended with the expected exit code (0) [2025-02-27T01:51:49.445Z] STF 01:51:48.209 - SETUP stage completed [2025-02-27T01:51:49.445Z] STF 01:51:48.218 - [2025-02-27T01:51:49.445Z] STF 01:51:48.218 - ==================== E X E C U T E - ==================== [2025-02-27T01:51:49.445Z] STF 01:51:48.218 - Running execute: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/execute.pl [2025-02-27T01:51:49.445Z] STF 01:51:48.515 - [2025-02-27T01:51:49.445Z] STF 01:51:48.515 - Java version [2025-02-27T01:51:49.445Z] STF 01:51:48.515 - Running: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/java -version [2025-02-27T01:51:49.445Z] Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:51:49.445Z] openjdk version "21.0.7-beta" 2025-04-15 [2025-02-27T01:51:49.446Z] OpenJDK Runtime Environment Temurin-21.0.7+4-202502262002 (build 21.0.7-beta+4-ea) [2025-02-27T01:51:49.446Z] OpenJDK 64-Bit Server VM Temurin-21.0.7+4-202502262002 (build 21.0.7-beta+4-ea, mixed mode, sharing) [2025-02-27T01:51:49.446Z] STF 01:51:48.793 - [2025-02-27T01:51:49.446Z] STF 01:51:48.793 - +------ Step 8 - Create runtime image using --exclude-files jlink option [2025-02-27T01:51:49.446Z] STF 01:51:48.793 - | Run jlink to create runtime image [2025-02-27T01:51:49.446Z] STF 01:51:48.793 - | ImageName: CR_ExclueFiles_Test [2025-02-27T01:51:49.446Z] STF 01:51:48.793 - | [2025-02-27T01:51:49.446Z] STF 01:51:48.794 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jlink --module-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/jmods:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/modules --add-modules com.test.jlink --output /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/8.CR_ExclueFiles_Test --exclude-files=**.policy* [2025-02-27T01:51:49.446Z] STF 01:51:48.794 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/8.JLNK.stderr [2025-02-27T01:51:49.446Z] STF 01:51:48.794 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/8.JLNK.stdout [2025-02-27T01:51:49.446Z] STF 01:51:48.854 - Monitoring processes: JLNK [2025-02-27T01:51:49.446Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:52:01.488Z] STF 01:52:00.923 - Monitoring Report Summary: [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - o Process JLNK ended with the expected exit code (0) [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - +------ Step 9 - Check if --exclude-files removed the given files from created image [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - | Validate file absent [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - | File: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/8.CR_ExclueFiles_Test/conf/security/java.policy [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - | [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - +------ Step 10 - Removing the runtime image after test completion.. [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - | Recursively delete a directory [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - | Directory: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/8.CR_ExclueFiles_Test [2025-02-27T01:52:01.488Z] STF 01:52:00.924 - | [2025-02-27T01:52:01.488Z] STF 01:52:00.935 - [2025-02-27T01:52:01.488Z] STF 01:52:00.935 - +------ Step 11 - Create runtime image using --strip-native-commands jlink option [2025-02-27T01:52:01.488Z] STF 01:52:00.935 - | Run jlink to create runtime image [2025-02-27T01:52:01.488Z] STF 01:52:00.936 - | ImageName: CR_StripNativeCommand_Test [2025-02-27T01:52:01.488Z] STF 01:52:00.936 - | [2025-02-27T01:52:01.488Z] STF 01:52:00.936 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jlink --module-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/jmods:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/com.test.jLinkDirCopy --add-modules com.test.jlink --output /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/11.CR_StripNativeCommand_Test --strip-native-commands [2025-02-27T01:52:01.488Z] STF 01:52:00.936 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/11.JLNK.stderr [2025-02-27T01:52:01.488Z] STF 01:52:00.936 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/11.JLNK.stdout [2025-02-27T01:52:01.488Z] STF 01:52:00.937 - Monitoring processes: JLNK [2025-02-27T01:52:01.488Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - Monitoring Report Summary: [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - o Process JLNK ended with the expected exit code (0) [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - +------ Step 12 - Check if --strip-native-commands removed java executable from created image [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - | Validate file absent [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - | File: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/11.CR_StripNativeCommand_Test/bin/java [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - | [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - +------ Step 13 - Removing the runtime image after test completion.. [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - | Recursively delete a directory [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - | Directory: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/11.CR_StripNativeCommand_Test [2025-02-27T01:52:17.844Z] STF 01:52:17.141 - | [2025-02-27T01:52:17.844Z] STF 01:52:17.152 - [2025-02-27T01:52:17.844Z] STF 01:52:17.152 - +------ Step 14 - Create runtime image using --releae-info jlink option [2025-02-27T01:52:17.844Z] STF 01:52:17.152 - | Run jlink to create runtime image [2025-02-27T01:52:17.844Z] STF 01:52:17.152 - | ImageName: CR_ReleaseInfo_Test [2025-02-27T01:52:17.844Z] STF 01:52:17.153 - | [2025-02-27T01:52:17.844Z] STF 01:52:17.153 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/jlink --module-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/jmods:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp --add-modules com.test.jlink --output /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/14.CR_ReleaseInfo_Test --release-info=add:UseYour=Illusion [2025-02-27T01:52:17.844Z] STF 01:52:17.153 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/14.JLNK.stderr [2025-02-27T01:52:17.844Z] STF 01:52:17.153 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/14.JLNK.stdout [2025-02-27T01:52:17.844Z] STF 01:52:17.201 - Monitoring processes: JLNK [2025-02-27T01:52:17.844Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - Monitoring Report Summary: [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - o Process JLNK ended with the expected exit code (0) [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - +------ Step 15 - Running adoptopenjdk.test.modularity.jlink.JlinkPluginTestReleaseInfo [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - | Run foreground process [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - | Program: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/java [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - | Mnemonic: T46 [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - | Echo: ECHO_ON [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - | Expectation: CLEAN_RUN within 1m [2025-02-27T01:52:34.099Z] STF 01:52:32.193 - | [2025-02-27T01:52:34.099Z] STF 01:52:32.194 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jdkbinary/j2sdk-image/bin/java -Drelease.info.file=/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/14.CR_ReleaseInfo_Test/release --add-reads com.test.jlink=ALL-UNNAMED --module-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test.jlink -XX:+UseCompressedOops -classpath /home/jenkins/testDependency/system_lib/junit/junit.jar:/home/jenkins/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore adoptopenjdk.test.modularity.jlink.JlinkPluginTestReleaseInfo [2025-02-27T01:52:34.099Z] STF 01:52:32.194 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/15.T46.stderr [2025-02-27T01:52:34.099Z] STF 01:52:32.194 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/results/15.T46.stdout [2025-02-27T01:52:34.099Z] STF 01:52:32.195 - Monitoring processes: T46 [2025-02-27T01:52:34.099Z] T46 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-02-27T01:52:34.099Z] T46 JUnit version 4.12 [2025-02-27T01:52:34.864Z] T46 . [2025-02-27T01:52:34.864Z] T46 Time: 0.031 [2025-02-27T01:52:34.864Z] T46 [2025-02-27T01:52:34.864Z] T46 OK (1 test) [2025-02-27T01:52:34.864Z] T46 [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - Monitoring Report Summary: [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - o Process T46 ended with the expected exit code (0) [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - +------ Step 16 - Removing the runtime image after test completion.. [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - | Recursively delete a directory [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - | Directory: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tmp/14.CR_ReleaseInfo_Test [2025-02-27T01:52:34.864Z] STF 01:52:34.105 - | [2025-02-27T01:52:34.864Z] STF 01:52:34.120 - EXECUTE stage completed [2025-02-27T01:52:34.864Z] STF 01:52:34.247 - [2025-02-27T01:52:34.864Z] STF 01:52:34.247 - ==================== T E A R D O W N ==================== [2025-02-27T01:52:34.864Z] STF 01:52:34.247 - Running teardown: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_aarch64_alpine-linux_testList_0/aqa-tests/TKG/../TKG/output_17406191539575/Jlink_GenOpt_0/20250227-015135-JlinkPluginTest/tearDown.pl [2025-02-27T01:52:34.864Z] STF 01:52:34.545 - TEARDOWN stage completed [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - ===================== R E S U L T S ===================== [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - Stage results: [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - setUp: pass [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - execute: pass [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - teardown: pass [2025-02-27T01:52:34.864Z] STF 01:52:34.549 - [2025-02-27T01:52:34.865Z] STF 01:52:34.549 - Overall result: PASSED [2025-02-27T01:52:34.865Z] ----------------------------------- [2025-02-27T01:52:34.865Z] Jlink_GenOpt_0_PASSED [2025-02-27T01:52:34.865Z] ----------------------------------- [2025-02-27T01:52:34.865Z] [2025-02-27T01:52:34.865Z] TEST TEARDOWN: [2025-02-27T01:52:34.865Z] Nothing to be done for teardown. [2025-02-27T01:52:34.865Z] Jlink_GenOpt_0 Finish Time: Thu Feb 27 01:52:34 2025 Epoch Time (ms): 1740621154625