Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCHelperCompatTests/HelperCompatibilityTests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2016, 2021 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
27
<!-- #### RUN TokenHelperTests SUITE #### -->
28
<suite id="Shared Classes HelperCompatibilityTests Suite">
29
30
<!-- Used to set which mode the test cases are run in -->
31
<variable name="currentMode" value=" "/>
32
33
<!-- Our test modes for this suite -->
34
<variable name="mode204" value="-Xshareclasses:name=HelperCompatibilityTests"/>
35
<variable name="mode205" value="-Xshareclasses:name=HelperCompatibilityTests,noClasspathCacheing"/>
36
37
<!-- Set variables up -->
38
<variable name="JAVAC_DIR" value="$TEST_JDK_HOME$/bin"/>
39
<variable name="BOOTCLASSPATH" value="-Xbootclasspath/a:./Utils$CPDL$."/>
40
41
<variable name="currentMode" value="$mode204$"/>
42
43
<!-- set currentMode variable depending on the value of loopIndex -->
44
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
45
<if testVariable="SCMODE" testValue="205" resultVariable="currentMode" resultValue="$mode205$"/>
46
<if testVariable="SCMODE" testValue="206" resultVariable="currentMode" resultValue="$mode206$"/>
47
48
<echo value=" "/>
49
<echo value="#######################################################"/>
50
<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>
51
<echo value="#######################################################"/>
52
<echo value=" "/>
53
54
<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>
55
56
<!-- Run HelperCompatibilityTests -->
57
<test id="HelperCompatibilityTest 1" timeout="600" runPath=".">
58
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLClassPathHelperURLHelperCompatibilityTest -testfile "$PROPS_DIR$/Test1.props"</command>
59
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
60
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
61
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
62
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
63
</test>
64
65
<test id="destroy cache 1" timeout="600" runPath=".">
66
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
67
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
68
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
69
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
70
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
71
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
72
</test>
73
74
<test id="HelperCompatibilityTest 2" timeout="600" runPath=".">
75
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLClassPathHelperURLHelperCompatibilityTest -testfile "$PROPS_DIR$/Test2.props"</command>
76
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
77
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
78
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
79
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
80
</test>
81
82
<test id="destroy cache 2" timeout="600" runPath=".">
83
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
84
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
85
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
86
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
87
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
88
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
89
</test>
90
91
<test id="HelperCompatibilityTest 3" timeout="600" runPath=".">
92
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLClassPathHelperURLHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test3.props" -javacdir $JAVAC_DIR$</command>
93
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
94
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
95
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
96
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
97
</test>
98
99
<test id="destroy cache 3" timeout="600" runPath=".">
100
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
101
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
102
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
103
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
104
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
105
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
106
</test>
107
108
<test id="HelperCompatibilityTest 4" timeout="600" runPath=".">
109
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLHelperURLClassPathHelperCompatibilityTest -testfile "$PROPS_DIR$/Test4.props"</command>
110
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
111
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
112
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
113
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
114
</test>
115
116
<test id="destroy cache 4" timeout="600" runPath=".">
117
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
118
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
119
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
120
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
121
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
122
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
123
</test>
124
125
<test id="HelperCompatibilityTest 5" timeout="600" runPath=".">
126
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ TokenIncompatibilityTest</command>
127
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
128
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
129
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
130
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
131
</test>
132
133
<test id="destroy cache 5" timeout="600" runPath=".">
134
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
135
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
136
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
137
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
138
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
139
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
140
</test>
141
142
<test id="HelperCompatibilityTest 6" timeout="600" runPath=".">
143
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLHelperURLClassPathHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test5.props" -javacdir $JAVAC_DIR$</command>
144
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
145
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
146
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
147
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
148
</test>
149
150
<test id="destroy cache 6" timeout="600" runPath=".">
151
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
152
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
153
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
154
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
155
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
156
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
157
</test>
158
159
<test id="HelperCompatibilityTest 7" timeout="600" runPath=".">
160
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLClassPathHelperURLHelperCompatibilityTest -testfile "$PROPS_DIR$/Test6.props"</command>
161
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
162
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
163
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
164
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
165
</test>
166
167
<test id="destroy cache 7" timeout="600" runPath=".">
168
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
169
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
170
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
171
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
172
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
173
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
174
</test>
175
176
<test id="HelperCompatibilityTest 8" timeout="600" runPath=".">
177
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLClassPathHelperURLHelperCompatibilityTest -testfile "$PROPS_DIR$/Test7.props"</command>
178
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
179
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
180
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
181
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
182
</test>
183
184
<test id="destroy cache 8" timeout="600" runPath=".">
185
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
186
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
187
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
188
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
189
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
190
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
191
</test>
192
193
<test id="HelperCompatibilityTest 9" timeout="600" runPath=".">
194
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLClassPathHelperURLHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test8.props" -javacdir $JAVAC_DIR$</command>
195
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
196
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
197
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
198
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
199
</test>
200
201
<test id="destroy cache 9" timeout="600" runPath=".">
202
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
203
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
204
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
205
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
206
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
207
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
208
</test>
209
210
<test id="HelperCompatibilityTest 10" timeout="600" runPath=".">
211
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLHelperURLClassPathHelperCompatibilityTest -testfile "$PROPS_DIR$/Test9.props"</command>
212
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
213
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
214
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
215
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
216
</test>
217
218
<test id="destroy cache 10" timeout="600" runPath=".">
219
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
220
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
221
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
222
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
223
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
224
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
225
</test>
226
227
<test id="HelperCompatibilityTest 11" timeout="600" runPath=".">
228
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ URLHelperURLClassPathHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test10.props" -javacdir $JAVAC_DIR$</command>
229
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
230
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
231
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
232
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
233
</test>
234
235
<test id="destroy cache 11" timeout="600" runPath=".">
236
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
237
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
238
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
239
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
240
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
241
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
242
</test>
243
244
<test id="HelperCompatibilityTest 12" timeout="600" runPath=".">
245
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ PartitioningURLClassPathHelperURLHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test11.props" -javacdir $JAVAC_DIR$</command>
246
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
247
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
248
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
249
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
250
</test>
251
252
<test id="destroy cache 12" timeout="600" runPath=".">
253
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
254
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
255
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
256
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
257
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
258
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
259
</test>
260
261
<test id="HelperCompatibilityTest 13" timeout="600" runPath=".">
262
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ PartitioningURLClassPathHelperURLHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test12.props" -javacdir $JAVAC_DIR$</command>
263
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
264
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
265
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
266
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
267
</test>
268
269
<test id="destroy cache 13" timeout="600" runPath=".">
270
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
271
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
272
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
273
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
274
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
275
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
276
</test>
277
278
<test id="HelperCompatibilityTest 14" timeout="600" runPath=".">
279
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ PartitioningURLClassPathHelperURLHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test13.props" -javacdir $JAVAC_DIR$</command>
280
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
281
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
282
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
283
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
284
</test>
285
286
<test id="destroy cache 14" timeout="600" runPath=".">
287
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
288
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
289
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
290
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
291
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
292
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
293
</test>
294
295
<test id="HelperCompatibilityTest 15" timeout="600" runPath=".">
296
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ PartitioningURLHelperURLClassPathHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test14.props" -javacdir $JAVAC_DIR$</command>
297
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
298
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
299
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
300
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
301
</test>
302
303
<test id="destroy cache 15" timeout="600" runPath=".">
304
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
305
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
306
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
307
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
308
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
309
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
310
</test>
311
312
<test id="HelperCompatibilityTest 16" timeout="600" runPath=".">
313
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ PartitioningURLHelperURLClassPathHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test15.props" -javacdir $JAVAC_DIR$</command>
314
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
315
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
316
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
317
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
318
</test>
319
320
<test id="destroy cache 16" timeout="600" runPath=".">
321
<command>$JAVA_EXE$ -Xshareclasses:name=HelperCompatibilityTests,destroy</command>
322
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
323
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
324
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
325
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
326
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
327
</test>
328
329
<test id="HelperCompatibilityTest 17" timeout="600" runPath=".">
330
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ PartitioningURLHelperURLClassPathHelperStaleEntryCompatibilityTest -testfile "$PROPS_DIR$/Test16.props" -javacdir $JAVAC_DIR$</command>
331
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
332
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
333
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
334
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
335
</test>
336
337
<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>
338
339
</suite>
340