Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/DataHelperTests/DataHelperTests_8.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2008, 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
79
<test id="simple caching of a resource" timeout="600" runPath=".">
80
<command>$JAVA_EXE$ $currentMode$ -classpath . apitesting.datahelper.DataCachingTest02</command>
81
<output type="success" caseSensitive="yes" regex="no">test successful</output>
82
<output type="failure" caseSensitive="no" regex="no">failed</output>
83
<output type="failure" caseSensitive="no" regex="no">exception:</output>
84
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
85
</test>
86
87
<test id="simple caching of a resource, with security on" timeout="600" runPath=".">
88
<command>$JAVA_EXE$ $currentMode$ $SECURITY_ON$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest02</command>
89
<output type="success" caseSensitive="yes" regex="no">test successful</output>
90
<output type="failure" caseSensitive="no" regex="no">failed</output>
91
<output type="failure" caseSensitive="no" regex="no">exception:</output>
92
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
93
</test>
94
95
<test id="simple caching of a resource, with security on but readonly policy" timeout="600" runPath=".">
96
<command>$JAVA_EXE$ $currentMode$,verboseHelper $BOOTCP$ -classpath . $SECURITY_ON_READONLY_BADPOLICY$ apitesting.datahelper.DataCachingTest02</command>
97
<output type="success" caseSensitive="yes" regex="no">storeSharedData('fileone.txt',...) has failed!</output>
98
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
99
</test>
100
101
<test id="simple caching of a resource, with security on but writeonly policy" timeout="600" runPath=".">
102
<command>$JAVA_EXE$ $currentMode$,verboseHelper $BOOTCP$ -classpath . $SECURITY_ON_WRITEONLY_BADPOLICY$ apitesting.datahelper.DataCachingTest02</command>
103
<output type="success" caseSensitive="yes" regex="no">should have found the resource but no data retrieved</output>
104
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
105
</test>
106
107
108
<test id="caching of multiple resources" timeout="600" runPath=".">
109
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest03</command>
110
<output type="success" caseSensitive="yes" regex="no">test successful</output>
111
<output type="failure" caseSensitive="no" regex="no">failed</output>
112
<output type="failure" caseSensitive="no" regex="no">exception:</output>
113
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
114
</test>
115
116
<test id="caching of multiple resources, security on" timeout="600" runPath=".">
117
<command>$JAVA_EXE$ $currentMode$ $SECURITY_ON$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest03</command>
118
<output type="success" caseSensitive="yes" regex="no">test successful</output>
119
<output type="failure" caseSensitive="no" regex="no">failed</output>
120
<output type="failure" caseSensitive="no" regex="no">exception:</output>
121
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
122
</test>
123
124
125
126
<test id="marking cache entries stale for bytedata resources" timeout="600" runPath=".">
127
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest04</command>
128
<output type="success" caseSensitive="yes" regex="no">test successful</output>
129
<output type="failure" caseSensitive="no" regex="no">failed</output>
130
<output type="failure" caseSensitive="no" regex="no">exception:</output>
131
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
132
</test>
133
134
135
<test id="more stale marking" timeout="600" runPath=".">
136
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest05</command>
137
<output type="success" caseSensitive="yes" regex="no">test successful</output>
138
<output type="failure" caseSensitive="no" regex="no">failed</output>
139
<output type="failure" caseSensitive="no" regex="no">exception:</output>
140
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
141
</test>
142
143
144
145
<test id="using same token for multiple resources" timeout="600" runPath=".">
146
<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest06</command>
147
<output type="success" caseSensitive="yes" regex="no">test successful</output>
148
<output type="failure" caseSensitive="no" regex="no">failed</output>
149
<output type="failure" caseSensitive="no" regex="no">exception:</output>
150
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
151
</test>
152
153
<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>
154
155
</suite>
156
157