Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/ShareClassesSimpleSanity/ShareClassesSimpleSanity.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2008, 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 CommandLineOptionTests Suite">
29
30
<!-- Our test modes for this suite -->
31
<variable name="mode204" value="-Xshareclasses:name=HelloWorldSanity"/>
32
33
<!-- Set variables up -->
34
<variable name="JAVAC_DIR" value="$TEST_JDK_HOME$/bin"/>
35
<variable name="UTILS_JAR" value="$UTILS_DIR$/utils.jar"/>
36
37
<variable name="currentMode" value="$mode204$"/>
38
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
39
40
<echo value=" "/>
41
<echo value="#######################################################"/>
42
<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>
43
<echo value="#######################################################"/>
44
<echo value=" "/>
45
46
<!-- Run HelperCompatibilityTests -->
47
48
<test id="Simple Sanity Initial Cleanup" timeout="600" runPath=".">
49
<command>$JAVA_EXE$ $currentMode$,destroy</command>
50
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
51
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
52
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
53
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
54
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
55
</test>
56
57
58
<test id="Simple Sanity Run and Build Cache" timeout="600" runPath=".">
59
<command>$JAVA_EXE$ $currentMode$ -cp $UTILS_JAR$ VMBench.FibBench</command>
60
<output type="success" caseSensitive="yes" regex="no">Fibonacci: iterations = 10000</output>
61
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
62
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
63
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
64
</test>
65
66
<test id="Simple Sanity Run and Use Cache" timeout="600" runPath=".">
67
<command>$JAVA_EXE$ $currentMode$ -cp $UTILS_JAR$ VMBench.FibBench</command>
68
<output type="success" caseSensitive="yes" regex="no">Fibonacci: iterations = 10000</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="Simple Sanity End Cleanup" timeout="600" runPath=".">
75
<command>$JAVA_EXE$ $currentMode$,destroy</command>
76
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
77
<output type="success" caseSensitive="yes" regex="no">is destroyed</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
<!-- CMVC 160662 : The next 4 tests use to crash when ROMClass builder used local strings to build shared classes -->
83
84
<test id="CMVC 160662 : Cleanup" timeout="600" runPath=".">
85
<command>$JAVA_EXE$ $currentMode$,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="no" regex="no">Unhandled Exception</output>
90
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
91
</test>
92
93
94
<test id="CMVC 160662 :Build a cache with no boot path classes" timeout="600" runPath=".">
95
<command>$JAVA_EXE$ $currentMode$,noBootclasspath -cp $UTILS_JAR$ VMBench.FibBench</command>
96
<output type="success" caseSensitive="yes" regex="no">Fibonacci: iterations = 10000</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="CMVC 160662 :Use a cache with no boot path classes" timeout="600" runPath=".">
103
<command>$JAVA_EXE$ $currentMode$,noBootclasspath -cp $UTILS_JAR$ VMBench.FibBench</command>
104
<output type="success" caseSensitive="yes" regex="no">Fibonacci: iterations = 10000</output>
105
<output type="failure" caseSensitive="yes" regex="no">Error:</output>
106
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
107
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
108
</test>
109
110
<test id="CMVC 160662 : Cleanup" timeout="600" runPath=".">
111
<command>$JAVA_EXE$ $currentMode$,destroy</command>
112
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
113
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
114
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
115
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
116
</test>
117
118
119
</suite>
120