Path: blob/master/test/functional/cmdLineTests/jep178staticLinkingTest/jep178.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2004, 2018 IBM Corp. and others45This program and the accompanying materials are made available under6the terms of the Eclipse Public License 2.0 which accompanies this7distribution and is available at https://www.eclipse.org/legal/epl-2.0/8or the Apache License, Version 2.0 which accompanies this distribution and9is available at https://www.apache.org/licenses/LICENSE-2.0.1011This Source Code may also be made available under the following12Secondary Licenses when the conditions for such availability set13forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14General Public License, version 2 with the GNU Classpath15Exception [1] and GNU General Public License, version 2 with the16OpenJDK Assembly Exception [2].1718[1] https://www.gnu.org/software/classpath/license.html19[2] http://openjdk.java.net/legal/assembly-exception.html2021SPDX-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-exception22-->2324<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">2526<suite id="JEP178 static linking tests" timeout="300">27<test id="jep178 testing static linking">28<command>$TESTJEP178_STATIC$ -jvmpath:$JVMLIBPATH$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JEPTESTCLASS$</command>29<output type="required" regex="no">[MSG] Reached OnLoad: JNI_OnLoad_testlibA [statically]</output>30<output type="required" regex="no">[MSG] Reached OnLoad: JNI_OnLoad_testlibB [statically]</output>31<output type="required" regex="no">[MSG] Reached native fooImpl() [statically]</output>32<output type="required" regex="no">[MSG] Reached native barImpl() [statically]</output>33<output type="required" regex="no">[MSG] Reached OnUnload: JNI_OnUnload_testlibA [statically]</output>34<output type="required" regex="no">[MSG] Reached OnUnload: JNI_OnUnload_testlibB [statically]</output>35<output type="failure" regex="no">[ERR]</output>36<output type="failure" regex="no">[dynamically]</output>37<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>38</test>3940<test id="jep178 testing dynamic linking">41<command>$TESTJEP178_DYNAMIC$ -jvmpath:$JVMLIBPATH$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JEPTESTCLASS$</command>42<output type="required" regex="no">[MSG] Reached OnLoad (testlibA): JNI_OnLoad [dynamically]</output>43<output type="required" regex="no">[MSG] Reached OnLoad (testlibB): JNI_OnLoad [dynamically]</output>44<output type="required" regex="no">[MSG] Reached native fooImpl() [dynamically]</output>45<output type="required" regex="no">[MSG] Reached native barImpl() [dynamically]</output>46<output type="required" regex="no">[MSG] Reached OnUnload (testlibA): JNI_OnUnload [dynamically]</output>47<output type="required" regex="no">[MSG] Reached OnUnload (testlibB): JNI_OnUnload [dynamically]</output>48<output type="failure" regex="no">[ERR]</output>49<output type="failure" regex="no">[statically]</output>50<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>51</test>5253<test id="jep178 native (jvmti) agent testing static linking at startup (OnLoad)">54<command>$TESTJEP178_STATIC$ -agentlib:$AGENTLIBA$ -agentlib:$AGENTLIBB$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$</command>55<output type="required" regex="no">[MSG] Reached OnLoad: Agent_OnLoad_testjvmtiA [statically]</output>56<output type="required" regex="no">[MSG] Reached OnLoad: Agent_OnLoad_testjvmtiB [statically]</output>57<output type="required" regex="no">[MSG] Testing jep178 for native agents at JVM startup (OnLoad)</output>58<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiB [statically]</output>59<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiA [statically]</output>60<output type="failure" regex="no">[ERR]</output>61<output type="failure" regex="no">[dynamically]</output>62<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>63</test>6465<test id="jep178 native (jvmti) agent testing static linking during live (OnAttach)">66<command>$TESTJEP178_STATIC$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$ --attach</command>67<output type="required" regex="no">[MSG] Attaching native agent testjvmtiA</output>68<output type="required" regex="no">[MSG] Reached OnAttach: Agent_OnAttach_testjvmtiA [statically]</output>69<output type="required" regex="no">[MSG] Attaching native agent testjvmtiB</output>70<output type="required" regex="no">[MSG] Reached OnAttach: Agent_OnAttach_testjvmtiB [statically]</output>71<output type="required" regex="no">[MSG] Testing jep178 for native agents during Live phase (OnAttach)</output>72<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiA [statically]</output>73<output type="required" regex="no">[MSG] Reached OnUnload: Agent_OnUnload_testjvmtiB [statically]</output>74<output type="failure" regex="no">[ERR]</output>75<output type="failure" regex="no">[dynamically]</output>76<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>77</test>7879<test id="jep178 native (jvmti) agent testing dynamic linking at startup (OnLoad)">80<command>$TESTJEP178_DYNAMIC$ -agentlib:$AGENTLIBA$ -agentlib:$AGENTLIBB$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$</command>81<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiA): Agent_OnLoad [dynamically]</output>82<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiB): Agent_OnLoad [dynamically]</output>83<output type="required" regex="no">[MSG] Testing jep178 for native agents at JVM startup (OnLoad)</output>84<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiA): Agent_OnUnload [dynamically]</output>85<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiB): Agent_OnUnload [dynamically]</output>86<output type="failure" regex="no">[ERR]</output>87<output type="failure" regex="no">[statically]</output>88<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>89</test>9091<test id="jep178 native (jvmti) agent testing dynamic linking during live (OnAttach)">92<command>$TESTJEP178_DYNAMIC$ -jvmpath:$JVMLIBPATH$ -Xbootclasspath/a:$ATTACHTOOLSJAR$ -classpath:$STATLNKJAR$ $JVM_OPTIONS$ $JVMTITESTCLASS$ --attach</command>93<output type="required" regex="no">[MSG] Attaching native agent testjvmtiA</output>94<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiA): Agent_OnAttach [dynamically]</output>95<output type="required" regex="no">[MSG] Attaching native agent testjvmtiB</output>96<output type="required" regex="no">[MSG] Reached OnLoad (testjvmtiB): Agent_OnAttach [dynamically]</output>97<output type="required" regex="no">[MSG] Testing jep178 for native agents during Live phase (OnAttach)</output>98<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiA): Agent_OnUnload [dynamically]</output>99<output type="required" regex="no">[MSG] Reached OnUnload (testjvmtiB): Agent_OnUnload [dynamically]</output>100<output type="failure" regex="no">[ERR]</output>101<output type="failure" regex="no">[statically]</output>102<output type="success" regex="no">[MSG] Test jep178 passed with error code: 0</output>103</test>104</suite>105106107