Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/jep178staticLinkingTest/jep178.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2004, 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
27
<suite id="JEP178 static linking tests" timeout="300">
28
<test id="jep178 testing static linking">
29
<command>$TESTJEP178_STATIC$ -jvmpath:$JVMLIBPATH$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JEPTESTCLASS$</command>
30
<output type="required" regex="no">[MSG] Reached OnLoad: JNI_OnLoad_testlibA [statically]</output>
31
<output type="required" regex="no">[MSG] Reached OnLoad: JNI_OnLoad_testlibB [statically]</output>
32
<output type="required" regex="no">[MSG] Reached native fooImpl() [statically]</output>
33
<output type="required" regex="no">[MSG] Reached native barImpl() [statically]</output>
34
<output type="required" regex="no">[MSG] Reached OnUnload: JNI_OnUnload_testlibA [statically]</output>
35
<output type="required" regex="no">[MSG] Reached OnUnload: JNI_OnUnload_testlibB [statically]</output>
36
<output type="failure" regex="no">[ERR]</output>
37
<output type="failure" regex="no">[dynamically]</output>
38
<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>
39
</test>
40
41
<test id="jep178 testing dynamic linking">
42
<command>$TESTJEP178_DYNAMIC$ -jvmpath:$JVMLIBPATH$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JEPTESTCLASS$</command>
43
<output type="required" regex="no">[MSG] Reached OnLoad (testlibA): JNI_OnLoad [dynamically]</output>
44
<output type="required" regex="no">[MSG] Reached OnLoad (testlibB): JNI_OnLoad [dynamically]</output>
45
<output type="required" regex="no">[MSG] Reached native fooImpl() [dynamically]</output>
46
<output type="required" regex="no">[MSG] Reached native barImpl() [dynamically]</output>
47
<output type="required" regex="no">[MSG] Reached OnUnload (testlibA): JNI_OnUnload [dynamically]</output>
48
<output type="required" regex="no">[MSG] Reached OnUnload (testlibB): JNI_OnUnload [dynamically]</output>
49
<output type="failure" regex="no">[ERR]</output>
50
<output type="failure" regex="no">[statically]</output>
51
<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>
52
</test>
53
54
<test id="jep178 native (jvmti) agent testing static linking at startup (OnLoad)">
55
<command>$TESTJEP178_STATIC$ -agentlib:$AGENTLIBA$ -agentlib:$AGENTLIBB$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$</command>
56
<output type="required" regex="no">[MSG] Reached OnLoad: Agent_OnLoad_testjvmtiA [statically]</output>
57
<output type="required" regex="no">[MSG] Reached OnLoad: Agent_OnLoad_testjvmtiB [statically]</output>
58
<output type="required" regex="no">[MSG] Testing jep178 for native agents at JVM startup (OnLoad)</output>
59
<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiB [statically]</output>
60
<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiA [statically]</output>
61
<output type="failure" regex="no">[ERR]</output>
62
<output type="failure" regex="no">[dynamically]</output>
63
<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>
64
</test>
65
66
<test id="jep178 native (jvmti) agent testing static linking during live (OnAttach)">
67
<command>$TESTJEP178_STATIC$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$ --attach</command>
68
<output type="required" regex="no">[MSG] Attaching native agent testjvmtiA</output>
69
<output type="required" regex="no">[MSG] Reached OnAttach: Agent_OnAttach_testjvmtiA [statically]</output>
70
<output type="required" regex="no">[MSG] Attaching native agent testjvmtiB</output>
71
<output type="required" regex="no">[MSG] Reached OnAttach: Agent_OnAttach_testjvmtiB [statically]</output>
72
<output type="required" regex="no">[MSG] Testing jep178 for native agents during Live phase (OnAttach)</output>
73
<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiA [statically]</output>
74
<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiB [statically]</output>
75
<output type="failure" regex="no">[ERR]</output>
76
<output type="failure" regex="no">[dynamically]</output>
77
<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>
78
</test>
79
80
<test id="jep178 native (jvmti) agent testing dynamic linking at startup (OnLoad)">
81
<command>$TESTJEP178_DYNAMIC$ -agentlib:$AGENTLIBA$ -agentlib:$AGENTLIBB$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$</command>
82
<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiA): Agent_OnLoad [dynamically]</output>
83
<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiB): Agent_OnLoad [dynamically]</output>
84
<output type="required" regex="no">[MSG] Testing jep178 for native agents at JVM startup (OnLoad)</output>
85
<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiA): Agent_OnUnload [dynamically]</output>
86
<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiB): Agent_OnUnload [dynamically]</output>
87
<output type="failure" regex="no">[ERR]</output>
88
<output type="failure" regex="no">[statically]</output>
89
<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>
90
</test>
91
92
<test id="jep178 native (jvmti) agent testing dynamic linking during live (OnAttach)">
93
<command>$TESTJEP178_DYNAMIC$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$ --attach</command>
94
<output type="required" regex="no">[MSG] Attaching native agent testjvmtiA</output>
95
<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiA): Agent_OnAttach [dynamically]</output>
96
<output type="required" regex="no">[MSG] Attaching native agent testjvmtiB</output>
97
<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiB): Agent_OnAttach [dynamically]</output>
98
<output type="required" regex="no">[MSG] Testing jep178 for native agents during Live phase (OnAttach)</output>
99
<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiA): Agent_OnUnload [dynamically]</output>
100
<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiB): Agent_OnUnload [dynamically]</output>
101
<output type="failure" regex="no">[ERR]</output>
102
<output type="failure" regex="no">[statically]</output>
103
<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>
104
</test>
105
</suite>
106
107