Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/DataHelperTests/DataHelperTests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2016, 2018 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
25
<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">
26
<suite id="Shared Classes DataCaching Helper API tests">
27
28
<variable name="TESTCACHENAME" value="testCache"/>
29
30
<!-- Used to set which mode the test cases are run in -->
31
<variable name="currentMode" value="-Xshareclasses:reset,name=$TESTCACHENAME$"/>
32
33
<variable name="mode204" value="-Xshareclasses:reset,name=$TESTCACHENAME$"/>
34
<variable name="mode205" value="-Xshareclasses:reset,name=$TESTCACHENAME$,noClasspathCacheing"/>
35
<variable name="mode208" value="-Xshareclasses:reset,name=$TESTCACHENAME$,noaot"/>
36
<variable name="mode209" value="-Xaot:forceAOT,count=0 -Xshareclasses:reset,name=$TESTCACHENAME$"/>
37
<variable name="mode210" value="-Xits0 -Xshareclasses:reset,name=$TESTCACHENAME$"/>
38
<variable name="mode211" value="-Xits2000 -Xshareclasses:reset,name=$TESTCACHENAME$"/>
39
<variable name="mode212" value="-Xits50000 -Xshareclasses:reset,name=$TESTCACHENAME$"/>
40
<variable name="mode213" value="-Xshareclasses:reset,name=$TESTCACHENAME$,noReduceStoreContention"/>
41
<variable name="mode214" value="-Xshareclasses:reset,name=$TESTCACHENAME$,modified=context1"/>
42
43
<variable name="currentMode" value="$mode204$"/>
44
45
<!-- set currentMode variable depending on the value of loopIndex -->
46
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
47
<if testVariable="SCMODE" testValue="205" resultVariable="currentMode" resultValue="$mode205$"/>
48
<if testVariable="SCMODE" testValue="206" resultVariable="currentMode" resultValue="$mode206$"/>
49
<if testVariable="SCMODE" testValue="208" resultVariable="currentMode" resultValue="$mode208$"/>
50
<if testVariable="SCMODE" testValue="209" resultVariable="currentMode" resultValue="$mode209$"/>
51
<if testVariable="SCMODE" testValue="210" resultVariable="currentMode" resultValue="$mode210$"/>
52
<if testVariable="SCMODE" testValue="211" resultVariable="currentMode" resultValue="$mode211$"/>
53
<if testVariable="SCMODE" testValue="212" resultVariable="currentMode" resultValue="$mode212$"/>
54
<if testVariable="SCMODE" testValue="213" resultVariable="currentMode" resultValue="$mode213$"/>
55
<if testVariable="SCMODE" testValue="214" resultVariable="currentMode" resultValue="$mode214$"/>
56
57
<echo value=" "/>
58
<echo value="#######################################################"/>
59
<echo value="Running tests with command line options: $currentMode$"/>
60
<echo value=" "/>
61
<exec command="$JAVA_EXE$ -version" quiet="false"/>
62
63
<variable name="BOOTCP" value=" "/>
64
<variable name="SECURITY_ON" value="-Djava.security.policy==java.good.policy -Djava.security.manager"/>
65
<variable name="SECURITY_ON_READONLY_BADPOLICY" value="-Djava.security.policy==java.bad.readonly.policy -Djava.security.manager"/>
66
<variable name="SECURITY_ON_WRITEONLY_BADPOLICY" value="-Djava.security.policy==java.bad.writeonly.policy -Djava.security.manager"/>
67
68
<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>
69
70
<test id="check the datacaching classloader is ok" timeout="600" runPath=".">
71
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest01</command>
72
<output type="success" caseSensitive="yes" regex="no">test successful</output>
73
<output type="failure" caseSensitive="no" regex="no">failed</output>
74
<output type="failure" caseSensitive="no" regex="no">exception:</output>
75
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
76
</test>
77
78
<test id="simple caching of a resource" timeout="600" runPath=".">
79
<command>$JAVA_EXE$ $currentMode$ -classpath . apitesting.datahelper.DataCachingTest02</command>
80
<output type="success" caseSensitive="yes" regex="no">test successful</output>
81
<output type="failure" caseSensitive="no" regex="no">failed</output>
82
<output type="failure" caseSensitive="no" regex="no">exception:</output>
83
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
84
</test>
85
86
<test id="simple caching of a resource, with security on" timeout="600" runPath=".">
87
<command>$JAVA_EXE$ $currentMode$ $SECURITY_ON$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest02</command>
88
<output type="success" caseSensitive="yes" regex="no">test successful</output>
89
<output type="failure" caseSensitive="no" regex="no">failed</output>
90
<output type="failure" caseSensitive="no" regex="no">exception:</output>
91
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
92
</test>
93
94
<test id="simple caching of a resource, with security on but readonly policy" timeout="600" runPath=".">
95
<command>$JAVA_EXE$ $currentMode$,verboseHelper $BOOTCP$ -classpath . $SECURITY_ON_READONLY_BADPOLICY$ apitesting.datahelper.DataCachingTest02</command>
96
<output type="success" caseSensitive="yes" regex="no">storeSharedData('fileone.txt',...) has failed!</output>
97
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
98
</test>
99
100
<test id="simple caching of a resource, with security on but writeonly policy" timeout="600" runPath=".">
101
<command>$JAVA_EXE$ $currentMode$,verboseHelper $BOOTCP$ -classpath . $SECURITY_ON_WRITEONLY_BADPOLICY$ apitesting.datahelper.DataCachingTest02</command>
102
<output type="success" caseSensitive="yes" regex="no">should have found the resource but no data retrieved</output>
103
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
104
</test>
105
106
<test id="caching of multiple resources" timeout="600" runPath=".">
107
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest03</command>
108
<output type="success" caseSensitive="yes" regex="no">test successful</output>
109
<output type="failure" caseSensitive="no" regex="no">failed</output>
110
<output type="failure" caseSensitive="no" regex="no">exception:</output>
111
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
112
</test>
113
114
<test id="caching of multiple resources, security on" timeout="600" runPath=".">
115
<command>$JAVA_EXE$ $currentMode$ $SECURITY_ON$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest03</command>
116
<output type="success" caseSensitive="yes" regex="no">test successful</output>
117
<output type="failure" caseSensitive="no" regex="no">failed</output>
118
<output type="failure" caseSensitive="no" regex="no">exception:</output>
119
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
120
</test>
121
122
<test id="marking cache entries stale for bytedata resources" timeout="600" runPath=".">
123
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest04</command>
124
<output type="success" caseSensitive="yes" regex="no">test successful</output>
125
<output type="failure" caseSensitive="no" regex="no">failed</output>
126
<output type="failure" caseSensitive="no" regex="no">exception:</output>
127
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
128
</test>
129
130
<test id="more stale marking" timeout="600" runPath=".">
131
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest05</command>
132
<output type="success" caseSensitive="yes" regex="no">test successful</output>
133
<output type="failure" caseSensitive="no" regex="no">failed</output>
134
<output type="failure" caseSensitive="no" regex="no">exception:</output>
135
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
136
</test>
137
138
<test id="using same token for multiple resources" timeout="600" runPath=".">
139
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest06</command>
140
<output type="success" caseSensitive="yes" regex="no">test successful</output>
141
<output type="failure" caseSensitive="no" regex="no">failed</output>
142
<output type="failure" caseSensitive="no" regex="no">exception:</output>
143
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
144
</test>
145
146
<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>
147
148
</suite>
149
150