Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/CDSAdaptorTest/cdsadaptortest.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2001, 2020 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="CDS Adaptor CommandLineOptionTests Suite">
28
29
<variable name="CACHENAME" value="cdsadaptor_cache" />
30
31
<variable name="XSHARECLASSES" value="-Xshareclasses:name=$CACHENAME$" />
32
33
<!-- NOTE: Update the version of org.eclipse.osgi whenever new version are checked in -->
34
<variable name="OSGI_JAR_PATH" value="$TEST_MATERIAL_DIR$$CPDL$$LIB_DIR$$PATHSEP$org.eclipse.osgi-3.16.100.jar" />
35
36
<variable name="FRAMEWORK_BUNDLE_LOCATION" value="$TEST_MATERIAL_DIR$$PATHSEP$FrameworkBundles" />
37
<variable name="TEST_BUNDLE_LOCATION" value="$TEST_MATERIAL_DIR$$PATHSEP$CDSAdaptorOrphanTestBundles" />
38
39
<test id="Test 0: Destroy existing shared class cache" timeout="600" runPath=".">
40
<command>$EXE$ $XSHARECLASSES$,destroy</command>
41
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
42
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
43
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
44
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
45
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
46
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
47
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
48
</test>
49
50
<test id="Test 1-a: Create a shared class cache while using weaving hooks" timeout="600" runPath=".">
51
<command>$EXE$ $XSHARECLASSES$ -cp $OSGI_JAR_PATH$ org.openj9.test.cdsadaptortest.CDSAdaptorOrphanTest -frameworkBundleLocation $FRAMEWORK_BUNDLE_LOCATION$ -testBundleLocation $TEST_BUNDLE_LOCATION$</command>
52
<output type="success" caseSensitive="no" regex="no">A message from modified class</output>
53
<output type="failure" caseSensitive="no" regex="no">original</output>
54
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
55
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
56
</test>
57
58
<test id="Test 1-b: Check shared class cache for presence of Orphan class" timeout="600" runPath=".">
59
<command>$EXE$ $XSHARECLASSES$,printStats=orphan+romclass</command>
60
<output type="success" caseSensitive="no" regex="no">ORPHAN: org/openj9/test/testbundle/SomeMessageV1</output>
61
<output type="failure" caseSensitive="no" regex="no">ROMCLASS: org/openj9/test/testbundle/SomeMessageV1</output>
62
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
63
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
64
</test>
65
66
<test id="Test 1-c: Reuse previous cache without using weaving hooks" timeout="600" runPath=".">
67
<command>$EXE$ $XSHARECLASSES$ -cp $OSGI_JAR_PATH$ org.openj9.test.cdsadaptortest.CDSAdaptorOrphanTest -frameworkBundleLocation $FRAMEWORK_BUNDLE_LOCATION$ -testBundleLocation $TEST_BUNDLE_LOCATION$ -ignoreWeavingHookBundle</command>
68
<output type="success" caseSensitive="no" regex="no">A message from original class</output>
69
<output type="failure" caseSensitive="no" regex="no">modified</output>
70
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
71
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
72
</test>
73
74
<test id="Test 1-d: Check shared class cache for presence of ROMClass class" timeout="600" runPath=".">
75
<command>$EXE$ $XSHARECLASSES$,printStats=orphan+romclass</command>
76
<output type="success" caseSensitive="no" regex="no">ORPHAN: org/openj9/test/testbundle/SomeMessageV1</output>
77
<output type="required" caseSensitive="no" regex="no">ROMCLASS: org/openj9/test/testbundle/SomeMessageV1</output>
78
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
79
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
80
</test>
81
82
<test id="Test 1-e: Reuse previous cache while using weaving hooks" timeout="600" runPath=".">
83
<command>$EXE$ $XSHARECLASSES$ -cp $OSGI_JAR_PATH$ org.openj9.test.cdsadaptortest.CDSAdaptorOrphanTest -frameworkBundleLocation $FRAMEWORK_BUNDLE_LOCATION$ -testBundleLocation $TEST_BUNDLE_LOCATION$</command>
84
<output type="success" caseSensitive="no" regex="no">A message from modified class</output>
85
<output type="failure" caseSensitive="no" regex="no">original</output>
86
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
87
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
88
</test>
89
90
<test id="Cleanup: Destroy any existing shared class cache" timeout="600" runPath=".">
91
<command>$EXE$ $XSHARECLASSES$,destroy</command>
92
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
93
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
94
<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>
95
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
96
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
97
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
98
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
99
</test>
100
101
</suite>
102
103