Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/callsitedbgddrext/callsiteddrtests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2018, 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="J9 shared cache dbgext Tests" timeout="600">
28
29
<variable name="CP" value="-cp $UTILSJAR$" />
30
<variable name="PROGRAM" value="org.openj9.test.ivj.Hanoi 2" />
31
<variable name="CACHENAME" value="shareddbgext" />
32
<variable name="DUMPFILE" value="j9core.dmp" />
33
<variable name="DUMPDIR" value="dumpdir" />
34
<variable name="XDUMP" value="-Xdump:system:file=$DUMPFILE$,events=vmstop" />
35
36
<!-- override the JDMPVIEW_EXE command on win32 since jdmpview.exe is failing on Windows XP - CMVC 200287 -->
37
<variable name="JDMPVIEW_EXE" value="$EXE$ com.ibm.jvm.dtfjview.DTFJView" platforms="win_x86-32" />
38
39
<!-- override the -Xdump command on z/OS -->
40
<variable name="XDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP,events=vmstop,request=exclusive+compact" platforms="zos.*" />
41
42
<test id="Create new shared cache with partition">
43
<command>$EXE$ -Xaot:forceaot,count=0,disableAsyncCompilation -Xshareclasses:name=$CACHENAME$,reset,modified=mod1</command>
44
<output regex="no" type="success">Usage:</output>
45
</test>
46
47
<test id="Create core file">
48
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
49
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
50
<exec command="rm -f $DUMPFILE$" />
51
<command>$EXE$ -Xmx4m -Xaot:forceaot,count=0 -Xshareclasses:name=$CACHENAME$ $CP$ $XDUMP$ $PROGRAM$</command>
52
<output regex="no" type="success">Moved disk 0 to 1</output>
53
<output regex="no" type="success">System dump written</output>
54
<!-- check for unexpected core dumps -->
55
<output regex="no" type="failure">0001.dmp</output>
56
</test>
57
58
<test id="Remove shared cache">
59
<command>$EXE$ -Xshareclasses:name=$CACHENAME$,destroy</command>
60
<output regex="no" type="success">destroyed</output>
61
</test>
62
63
<test id="Run !printallcallsites">
64
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
65
<arg>-c</arg>
66
<arg>echo $$LOGNAME</arg>
67
</exec>
68
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />
69
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />
70
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
71
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
72
<command command="$JDMPVIEW_EXE$">
73
<arg>-core $DUMPFILE$</arg>
74
<input>!printallcallsites</input>
75
<input>quit</input>
76
</command>
77
<output regex="no" type="success">jvminit.c</output>
78
<output regex="no" type="failure">DDRInteractiveCommandException</output>
79
<output regex="no" type="failure">no shared cache</output>
80
<output regex="no" type="failure">unable to read</output>
81
<output regex="no" type="failure">could not read</output>
82
<output regex="no" type="failure">dump event</output>
83
</test>
84
85
<test id="Run !findallcallsites">
86
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
87
<arg>-c</arg>
88
<arg>echo $$LOGNAME</arg>
89
</exec>
90
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />
91
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />
92
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
93
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
94
<command command="$JDMPVIEW_EXE$">
95
<arg>-core $DUMPFILE$</arg>
96
<input>!findallcallsites</input>
97
<input>quit</input>
98
</command>
99
<output regex="no" type="success">jvminit.c</output>
100
<output regex="no" type="failure">DDRInteractiveCommandException</output>
101
<output regex="no" type="failure">no shared cache</output>
102
<output regex="no" type="failure">unable to read</output>
103
<output regex="no" type="failure">could not read</output>
104
<output regex="no" type="failure">dump event</output>
105
</test>
106
107
108
</suite>
109
110
111
112