-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate tests that rely on SecurityManager (Java8andUp) #14442
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1065,6 +1065,52 @@ | |
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>JCL_Test_SM</testCaseName> | ||
<variations> | ||
<variation>NoOptions</variation> | ||
<variation>-XX:RecreateClassfileOnload</variation> | ||
<variation>-XX:+CompactStrings</variation> | ||
</variations> | ||
<command>$(JAVA_COMMAND) $(JAVA_SECURITY_MANAGER) $(JVM_OPTIONS) -verbose:stacktrace -Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)java.policy$(Q) \ | ||
-Drowset.provider.classname=org.openj9.resources.classloader.CustomSyncProvider \ | ||
--add-modules openj9.sharedclasses $(ADD_MODULE_JAVA_SE_EE) \ | ||
--add-exports java.base/com.ibm.oti.vm=ALL-UNNAMED \ | ||
--add-exports java.base/com.ibm.oti.util=ALL-UNNAMED \ | ||
--add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED \ | ||
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED $(ADD_EXPORTS_JDK_INTERNAL_REFLECT) \ | ||
--add-exports java.base/com.ibm.jit.crypto=ALL-UNNAMED \ | ||
--add-exports java.base/com.ibm.oti.reflect=ALL-UNNAMED \ | ||
--add-exports java.base/sun.net.www.protocol.jrt=ALL-UNNAMED \ | ||
--add-opens=java.base/java.lang=ALL-UNNAMED \ | ||
--add-opens=java.base/java.security=ALL-UNNAMED \ | ||
$(ADD_EXPORTS_JDK_INTERNAL_ACCESS) \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(JAXB_API_JAR)$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames \ | ||
JCL_TEST_Java-Lang_SM,\ | ||
JCL_TEST_Java-Lang-Invoke_SM,\ | ||
JCL_TEST_Java-Lang_ClassLoader_SM,\ | ||
JCL_TEST_IBM-VM_SM \ | ||
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
<levels> | ||
<level>sanity</level> | ||
</levels> | ||
<groups> | ||
<group>functional</group> | ||
</groups> | ||
<versions> | ||
<version>11</version> | ||
<version>17</version> | ||
<version>18</version> | ||
</versions> | ||
<impls> | ||
<impl>openj9</impl> | ||
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>JCL_Test_Native</testCaseName> | ||
<variations> | ||
|
@@ -1169,6 +1215,51 @@ | |
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>JCL_Test_SM_none_SCC</testCaseName> | ||
<variations> | ||
<variation>-Xshareclasses:none</variation> | ||
<variation>-Xshareclasses:none -XX:RecreateClassfileOnload</variation> | ||
</variations> | ||
<command>$(JAVA_COMMAND) $(JAVA_SECURITY_MANAGER) $(JVM_OPTIONS) -verbose:stacktrace -Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)java.policy$(Q) \ | ||
-Drowset.provider.classname=org.openj9.resources.classloader.CustomSyncProvider \ | ||
--add-modules openj9.sharedclasses $(ADD_MODULE_JAVA_SE_EE) \ | ||
--add-exports java.base/com.ibm.oti.vm=ALL-UNNAMED \ | ||
--add-exports java.base/com.ibm.oti.util=ALL-UNNAMED \ | ||
--add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED \ | ||
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED $(ADD_EXPORTS_JDK_INTERNAL_REFLECT) \ | ||
--add-exports java.base/com.ibm.jit.crypto=ALL-UNNAMED \ | ||
--add-exports java.base/com.ibm.oti.reflect=ALL-UNNAMED \ | ||
--add-exports java.base/sun.net.www.protocol.jrt=ALL-UNNAMED \ | ||
--add-opens=java.base/java.lang=ALL-UNNAMED \ | ||
--add-opens=java.base/java.security=ALL-UNNAMED \ | ||
$(ADD_EXPORTS_JDK_INTERNAL_ACCESS) \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(JAXB_API_JAR)$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames \ | ||
JCL_TEST_Java-Lang_SM,\ | ||
JCL_TEST_Java-Lang-Invoke_SM,\ | ||
JCL_TEST_Java-Lang_ClassLoader_SM,\ | ||
JCL_TEST_IBM-VM_SM \ | ||
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
<levels> | ||
<level>sanity</level> | ||
</levels> | ||
<groups> | ||
<group>functional</group> | ||
</groups> | ||
<versions> | ||
<version>11</version> | ||
<version>17</version> | ||
<version>18</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only need 11/17/18, assuming this is a SM version of |
||
</versions> | ||
<impls> | ||
<impl>openj9</impl> | ||
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>JCL_Test_none_SCC_Native</testCaseName> | ||
<variations> | ||
|
@@ -1264,19 +1355,22 @@ | |
<command>$(JAVA_COMMAND) $(JVM_OPTIONS) -verbose:stacktrace -Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)java.policy$(Q) \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(Q) \ | ||
-Drowset.provider.classname=org.openj9.resources.classloader.CustomSyncProvider \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng.xml$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames \ | ||
JCL_TEST_Test-TypeAnnotation,\ | ||
JCL_TEST_Test-Annotation,\ | ||
JCL_TEST_Test-Annotation-Identity,\ | ||
JCL_TEST_Test-Annotation-ClassLoader,\ | ||
JCL_TEST_Test-Annotation-Package,\ | ||
JCL_TEST_Java-Lang_ClassLoader,\ | ||
JCL_TEST_Java-Lang_ClassLoader_SM,\ | ||
JCL_TEST_Test-Defects,\ | ||
JCL_TEST_Test-UnsafeFence,\ | ||
JCL_TEST_IBM-VM,\ | ||
JCL_TEST_Java-Lang,\ | ||
JCL_TEST_Java-Lang_SM,\ | ||
JCL_TEST_Java-Lang-Invoke,\ | ||
JCL_TEST_Java-Lang-Invoke_SM,\ | ||
JCL_TEST_Java-Lang-Ref,\ | ||
JCL_TEST_Java-Lang-Reflect,\ | ||
JCL_TEST_Java-Math,\ | ||
|
@@ -1383,15 +1477,48 @@ | |
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
<platformRequirements>^vm.hrt</platformRequirements> | ||
<levels> | ||
<level>sanity</level> | ||
</levels> | ||
<groups> | ||
<group>functional</group> | ||
</groups> | ||
<versions> | ||
<version>9+</version> | ||
<version>11</version> | ||
<version>17</version> | ||
<version>18</version> | ||
</versions> | ||
<impls> | ||
<impl>openj9</impl> | ||
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>J9VMInternals_Test_SM</testCaseName> | ||
<variations> | ||
<variation>NoOptions</variation> | ||
</variations> | ||
<command>$(MKDIR) -p $(REPORTDIR); \ | ||
cd $(REPORTDIR); \ | ||
$(JAVA_COMMAND) $(JAVA_SECURITY_MANAGER) $(JVM_OPTIONS) -verbose:stacktrace \ | ||
-Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)java.policy$(Q) \ | ||
-Xbootclasspath/a:$(TEST_RESROOT)$(D)TestResources.jar \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames JCL_TEST_Java-Internals_SM \ | ||
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
<levels> | ||
<level>sanity</level> | ||
</levels> | ||
<groups> | ||
<group>functional</group> | ||
</groups> | ||
<versions> | ||
<version>11</version> | ||
<version>17</version> | ||
<version>18</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only 11/17/18 are needed. |
||
</versions> | ||
<impls> | ||
<impl>openj9</impl> | ||
|
@@ -1410,8 +1537,10 @@ | |
-Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)java.policy$(Q) \ | ||
-Xbootclasspath/a:$(TEST_RESROOT)$(D)TestResources.jar \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng.xml$(Q) \ | ||
-testnames JCL_TEST_Java-Internals \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames \ | ||
JCL_TEST_Java-Internals,\ | ||
JCL_TEST_Java-Internals_SM \ | ||
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
|
@@ -1443,8 +1572,10 @@ | |
-Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)testacc.policy$(Q) \ | ||
-Xbootclasspath/a:$(TEST_RESROOT)$(D)TestResources.jar \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng.xml$(Q) \ | ||
-testnames JCL_TEST_Java-Security \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames \ | ||
JCL_TEST_Java-Security,\ | ||
JCL_TEST_Java-Security_SM \ | ||
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
|
@@ -1504,6 +1635,40 @@ | |
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>JCL_TEST_Java-Security_SM</testCaseName> | ||
<variations> | ||
<variation>NoOptions</variation> | ||
</variations> | ||
<command>$(JAVA_COMMAND) $(JAVA_SECURITY_MANAGER) $(JVM_OPTIONS) -verbose:stacktrace \ | ||
--add-modules openj9.sharedclasses $(ADD_MODULE_JAVA_SE_EE) \ | ||
--add-exports java.base/com.ibm.oti.util=ALL-UNNAMED \ | ||
--add-opens=java.base/java.lang=ALL-UNNAMED \ | ||
--add-opens=java.base/java.security=ALL-UNNAMED \ | ||
-Djava.security.policy=$(Q)$(TEST_RESROOT)$(D)testacc.policy$(Q) \ | ||
-Xbootclasspath/a:$(TEST_RESROOT)$(D)TestResources.jar \ | ||
-cp $(Q)$(RESOURCES_DIR)$(P)$(TESTNG)$(P)$(TEST_RESROOT)$(D)GeneralTest.jar$(P)$(TEST_RESROOT)$(D)TestResources.jar$(P)$(LIB_DIR)$(D)asm-all.jar$(Q) \ | ||
org.testng.TestNG -d $(REPORTDIR) $(Q)$(TEST_RESROOT)$(D)testng_sm.xml$(Q) \ | ||
-testnames JCL_TEST_Java-Security_SM \ | ||
-groups $(TEST_GROUP) \ | ||
-excludegroups $(DEFAULT_EXCLUDE); \ | ||
$(TEST_STATUS)</command> | ||
<levels> | ||
<level>sanity</level> | ||
</levels> | ||
<groups> | ||
<group>functional</group> | ||
</groups> | ||
<versions> | ||
<version>11</version> | ||
<version>17</version> | ||
<version>18</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will also have to add to versions. (Is there a better way than listing all the versions individually?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently we don't, we can have something like this in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering if this[1] is the playlist version parsing in question? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we have a plan to add something like [8,18]. But we also need to support it in the internal perl tkg as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only 11/17/18 are required. |
||
</versions> | ||
<impls> | ||
<impl>openj9</impl> | ||
<impl>ibm</impl> | ||
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>JCL_Test_JITHelpers_SE80</testCaseName> | ||
<command>$(JAVA_COMMAND) $(JVM_OPTIONS) \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only 11/17/18 are required.