Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/URLHelperTests/URLHelperTests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2006, 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 URLHelperTests SUITE #### -->
28
<suite id="Shared Classes URLHelperTests 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=URLHelperTests"/>
35
<variable name="mode205" value="-Xshareclasses:name=URLHelperTests,noClasspathCacheing"/>
36
37
<!-- Set variables up -->
38
<variable name="JAVAC_DIR" value="$JAVA_HOME$$PATHSEP$bin"/>
39
<variable name="BOOTCLASSPATH" value="--add-modules openj9.sharedclasses --add-exports java.base/Utilities=ALL-UNNAMED --add-reads java.base=openj9.sharedclasses --patch-module java.base=.$PATHSEP$Utils$CPDL$."/>
40
41
<variable name="currentMode" value="$mode204$"/>
42
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
43
<if testVariable="SCMODE" testValue="205" resultVariable="currentMode" resultValue="$mode205$"/>
44
<if testVariable="SCMODE" testValue="206" resultVariable="currentMode" resultValue="$mode206$"/>
45
46
<variable name="enableTimestampCheck" value=",checkURLTimestamps"/>
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 APITests.URLStoreFindTest -->
57
<test id="APITests.URLStoreFindTest" timeout="600" runPath=".">
58
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ APITests.URLStoreFindTest</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" timeout="600" runPath=".">
66
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
67
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
68
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
69
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
70
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
71
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
72
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
73
</test>
74
75
<!-- Run APITests.NullURLStore/FindTest -->
76
<test id="APITests.NullURLStoreTest" timeout="600" runPath=".">
77
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ APITests.NullURLStoreTest</command>
78
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
79
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
80
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
81
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
82
</test>
83
84
<test id="destroy cache" timeout="600" runPath=".">
85
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
86
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
87
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
88
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
89
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
90
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
91
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
92
</test>
93
94
<test id="APITests.NullURLFindTest" timeout="600" runPath=".">
95
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ APITests.NullURLFindTest</command>
96
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
97
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
98
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
99
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
100
</test>
101
102
<test id="destroy cache" timeout="600" runPath=".">
103
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
104
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
105
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
106
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
107
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
108
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
109
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
110
</test>
111
112
<test id="APITests.NullPointerAndEmptyArrayTest" timeout="600" runPath=".">
113
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ -Xtrace:print={j9jcl.162,j9jcl.163,j9jcl.486} APITests.NullPointerAndEmptyArrayTest </command>
114
<output type="success" caseSensitive="yes" regex="no">NullPointerAndEmptyArrayTest : TEST PASSED</output>
115
<output type="required" caseSensitive="yes" regex="no">Exiting because URL count is 0</output>
116
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Entering with url (00000000|0000000000000000)</output>
117
<output type="required" caseSensitive="yes" regex="no">Exiting with 0 as CallObjectMethod failed for URLgetPathID</output>
118
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
119
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
120
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
121
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
122
<output type="failure" caseSensitive="no" regex="no">ASSERTION FAILED</output>
123
</test>
124
125
<test id="destroy cache" timeout="600" runPath=".">
126
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
127
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
128
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
129
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
130
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
131
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
132
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
133
</test>
134
135
<!-- Run APITests.URLGetDifferentHelperTest -->
136
<test id="APITests.URLGetDifferentHelperTest" timeout="600" runPath=".">
137
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ APITests.URLGetDifferentHelperTest</command>
138
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
139
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
140
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
141
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
142
</test>
143
144
<test id="destroy cache" timeout="600" runPath=".">
145
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
146
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
147
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
148
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
149
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
150
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
151
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
152
</test>
153
154
<!-- Run APITests.URLMultipleGetHelperCallTest -->
155
<test id="APITests.URLMultipleGetHelperCallTest" timeout="600" runPath=".">
156
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ APITests.URLMultipleGetHelperCallTest</command>
157
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
158
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
159
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
160
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
161
</test>
162
163
<test id="destroy cache" timeout="600" runPath=".">
164
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
165
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
166
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
167
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
168
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
169
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
170
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
171
</test>
172
173
<!-- Run ClassPathMatchingTests -->
174
<test id="URLClassPathMatchingTest 1" timeout="600" runPath=".">
175
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ ClassPathMatchingTests.URLClassPathMatchingTest -testfile .$PATHSEP$ClassPathMatchingTests$PATHSEP$Test1.props</command>
176
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
177
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
178
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
179
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
180
</test>
181
182
<test id="destroy cache" timeout="600" runPath=".">
183
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
184
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
185
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
186
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
187
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
188
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
189
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
190
</test>
191
192
<test id="URLClassPathMatchingTest 2" timeout="600" runPath=".">
193
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ ClassPathMatchingTests.MultiLoadURLClassPathMatchingTest -testfile .$PATHSEP$ClassPathMatchingTests$PATHSEP$Test2.props</command>
194
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
195
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
196
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
197
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
198
</test>
199
200
<test id="destroy cache" timeout="600" runPath=".">
201
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
202
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
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="URLClassPathMatchingTest 3" timeout="600" runPath=".">
211
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$ ClassPathMatchingTests.URLClassPathMatchingTest -testfile .$PATHSEP$ClassPathMatchingTests$PATHSEP$Test3.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" timeout="600" runPath=".">
219
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
220
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
221
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
222
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
223
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
224
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
225
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
226
</test>
227
228
<!-- Run URLStaleClassPathEntryTests -->
229
<test id="URLStaleClassPathEntryTest 1" timeout="600" runPath=".">
230
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$; StaleClassPathEntryTests.URLStaleClassPathEntryTest -testfile .$PATHSEP$StaleClassPathEntryTests$PATHSEP$$PROPS_DIR$$PATHSEP$Test1.props -javacdir $JAVAC_DIR$</command>
231
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
232
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
233
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
234
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
235
</test>
236
237
<test id="destroy cache" timeout="600" runPath=".">
238
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
239
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
240
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
241
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
242
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
243
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
244
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
245
</test>
246
247
<test id="URLStaleClassPathEntryTest 2" timeout="600" runPath=".">
248
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$; StaleClassPathEntryTests.URLStaleClassPathEntryTest -testfile .$PATHSEP$StaleClassPathEntryTests$PATHSEP$$PROPS_DIR$$PATHSEP$Test2.props -javacdir $JAVAC_DIR$</command>
249
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
250
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
251
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
252
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
253
</test>
254
255
<test id="destroy cache" timeout="600" runPath=".">
256
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
257
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
258
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
259
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
260
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
261
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
262
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
263
</test>
264
265
<test id="URLStaleClassPathEntryTest 3" timeout="600" runPath=".">
266
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$; StaleClassPathEntryTests.URLStaleClassPathEntryTest -testfile .$PATHSEP$StaleClassPathEntryTests$PATHSEP$$PROPS_DIR$$PATHSEP$Test3.props -javacdir $JAVAC_DIR$</command>
267
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
268
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
269
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
270
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
271
</test>
272
273
<test id="destroy cache" timeout="600" runPath=".">
274
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
275
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
276
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
277
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
278
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
279
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
280
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
281
</test>
282
283
<test id="URLStaleClassPathEntryTest 4" timeout="600" runPath=".">
284
<command>$JAVA_EXE$ $currentMode$$enableTimestampCheck$ $BOOTCLASSPATH$; StaleClassPathEntryTests.URLStaleClassPathEntryTest -testfile .$PATHSEP$StaleClassPathEntryTests$PATHSEP$$PROPS_DIR$$PATHSEP$Test4.props -javacdir $JAVAC_DIR$</command>
285
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
286
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
287
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
288
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
289
</test>
290
291
<test id="destroy cache" timeout="600" runPath=".">
292
<command>$JAVA_EXE$ -Xshareclasses:name=URLHelperTests,destroy</command>
293
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
294
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
295
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
296
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
297
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
298
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
299
</test>
300
301
<!-- Run PartitioningTests -->
302
<test id="PartitioningTest 1" timeout="600" runPath=".">
303
<command>$JAVA_EXE$ $currentMode$ $BOOTCLASSPATH$; PartitioningTests.URLPartitioningStoreFindTest -testfile .$PATHSEP$PartitioningTests$PATHSEP$$PROPS_DIR$$PATHSEP$Test1.props</command>
304
<output type="success" caseSensitive="yes" regex="no">TEST PASSED</output>
305
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
306
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
307
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
308
</test>
309
310
<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>
311
312
</suite>
313