Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/reflectCache/reflectcache_test.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
<suite id="-Dreflect.cache Command-Line Option Tests" timeout="2400">
28
29
<variable name="EXPORTS" value="--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"/>
30
<if testVariable="JDK_VERSION" testValue="8" resultVariable="EXPORTS" resultValue=" "/>
31
<if testVariable="JDK_VERSION" testValue="11" resultVariable="EXPORTS" resultValue=" "/>
32
33
<test id="No reflect.cache cmdLine option. Reflect Cache test classes are in classpath.">
34
<command>$EXE$ $EXPORTS$ -cp $Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
35
<output regex="no" type="success">testField is cached</output>
36
<output regex="no" type="required">testMethod is cached</output>
37
<output regex="no" type="failure">TEST FAILED</output>
38
<output regex="no" type="failure">JVMJ9VM085</output>
39
</test>
40
41
<test id="No reflect.cache cmdLine option. Reflect Cache test classes are in boot classpath.">
42
<command>$EXE$ $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
43
<output regex="no" type="success">testField is cached</output>
44
<output regex="no" type="required">testMethod is cached</output>
45
<output regex="no" type="failure">TEST FAILED</output>
46
<output regex="no" type="failure">JVMJ9VM085</output>
47
</test>
48
49
<test id="-Dreflect.cache Reflect Cache test classes are in classpath.">
50
<command>$EXE$ -Dreflect.cache $EXPORTS$ -cp $Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
51
<output regex="no" type="success">testField is cached</output>
52
<output regex="no" type="required">testMethod is cached</output>
53
<output regex="no" type="failure">TEST FAILED</output>
54
<output regex="no" type="failure">JVMJ9VM085</output>
55
</test>
56
57
<test id="-Dreflect.cache. Reflect Cache test classes are in boot classpath.">
58
<command>$EXE$ -Dreflect.cache $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
59
<output regex="no" type="success">testField is cached</output>
60
<output regex="no" type="required">testMethod is cached</output>
61
<output regex="no" type="failure">TEST FAILED</output>
62
<output regex="no" type="failure">JVMJ9VM085</output>
63
</test>
64
65
<test id="-Dreflect.cache=false . Reflect Cache test classes are in classpath.">
66
<command>$EXE$ -Dreflect.cache=false $EXPORTS$ -cp $Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
67
<output regex="no" type="success">testField is not cached</output>
68
<output regex="no" type="required">testMethod is not cached</output>
69
<output regex="no" type="failure">TEST FAILED</output>
70
<output regex="no" type="failure">JVMJ9VM085</output>
71
</test>
72
73
<test id="-Dreflect.cache=boot. Reflect Cache test classes are in boot classpath.">
74
<command>$EXE$ -Dreflect.cache=boot $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
75
<output regex="no" type="success">testField is cached</output>
76
<output regex="no" type="required">testMethod is cached</output>
77
<output regex="no" type="failure">TEST FAILED</output>
78
<output regex="no" type="failure">JVMJ9VM085</output>
79
</test>
80
81
<test id="-Dreflect.cache=boot,app . Reflect Cache test classes are in boot classpath.">
82
<command>$EXE$ -Dreflect.cache=boot,app $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
83
<output regex="no" type="success">testField is cached</output>
84
<output regex="no" type="required">testMethod is cached</output>
85
<output regex="no" type="failure">TEST FAILED</output>
86
<output regex="no" type="failure">JVMJ9VM085</output>
87
</test>
88
89
<test id="-Dreflect.cache=app . Reflect Cache test classes are in boot classpath.">
90
<command>$EXE$ -Dreflect.cache=app $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
91
<output regex="no" type="success">testField is not cached</output>
92
<output regex="no" type="required">testMethod is not cached</output>
93
<output regex="no" type="failure">TEST FAILED</output>
94
<output regex="no" type="failure">JVMJ9VM085</output>
95
</test>
96
97
<test id="-Dreflect.cache=app,boot . Reflect Cache test classes are in boot classpath.">
98
<command>$EXE$ -Dreflect.cache=app,boot $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
99
<output regex="no" type="success">testField is cached</output>
100
<output regex="no" type="required">testMethod is cached</output>
101
<output regex="no" type="failure">TEST FAILED</output>
102
<output regex="no" type="failure">JVMJ9VM085</output>
103
</test>
104
105
<test id="-Xaggressive . Reflect Cache test classes are in boot classpath.">
106
<command>$EXE$ -Xaggressive $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
107
<output regex="no" type="success">testField is cached</output>
108
<output regex="no" type="required">testMethod is cached</output>
109
<output regex="no" type="failure">TEST FAILED</output>
110
<output regex="no" type="failure">JVMJ9VM085</output>
111
</test>
112
113
<test id="-Xaggressive -Dreflect.cache=app. Reflect Cache test classes are in boot classpath.">
114
<command>$EXE$ -Xaggressive -Dreflect.cache=app $EXPORTS$ -Xbootclasspath/a:$Q$$REFLECTCACHETESTJAR$$Q$ test.reflectCache.Test_ReflectCache</command>
115
<output regex="no" type="success">testField is not cached</output>
116
<output regex="no" type="required">testMethod is not cached</output>
117
<output regex="no" type="failure">TEST FAILED</output>
118
<output regex="no" type="failure">JVMJ9VM085</output>
119
</test>
120
121
</suite>
122
123