Path: blob/master/test/functional/cmdLineTests/cmdLineTest_J9tests/j9tests.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2019, 2021 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="J9 Command-Line Option Tests" timeout="600">27<variable name="READIPINFOFORRAS" value="-XX:+ReadIPInfoForRAS"/>28<variable name="NOREADIPINFOFORRAS" value="-XX:-ReadIPInfoForRAS"/>29<variable name="READIPINFOFORRAS_MESSAGE" value="enabled network query to determine host name and IP address for RAS."/>30<variable name="NOREADIPINFOFORRAS_MESSAGE" value="disabled network query to determine host name and IP address for RAS."/>3132<variable name="JVM_HEAP_LIMIT" value="-Xmx64m"/>33<variable name="ONOUTOFMEMORYERROR_EQUALS" value="-XX:OnOutOfMemoryError="/>34<variable name="ONOUTOFMEMORYERROR_JAR" value="-cp $Q$$JARPATH$$Q$ OnOutOfMemoryErrorTest"/>35<variable name="JAVALANGOUTOFMEMORYERROR" value="java.lang.OutOfMemoryError:"/>3637<test id="Verify Generate a javacore to STDOUT">38<command>$EXE$ -Xdump:java:events=vmstart,file=/STDOUT/</command>39<output type="success" caseSensitive="yes" regex="no">TITLE subcomponent dump routine</output>40<output type="success" caseSensitive="yes" regex="no">END OF DUMP</output>41<output regex="no" type="failure">Command-line option unrecognised</output>42<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>43<output type="failure" caseSensitive="yes" regex="no">Exception:</output>44</test>4546<test id="Verify Generate a javacore to STDERR">47<command>$EXE$ -Xdump:java:events=vmstart,file=/STDERR/</command>48<output type="success" caseSensitive="yes" regex="no">TITLE subcomponent dump routine</output>49<output type="success" caseSensitive="yes" regex="no">END OF DUMP</output>50<output regex="no" type="failure">Command-line option unrecognised</output>51<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>52<output type="failure" caseSensitive="yes" regex="no">Exception:</output>53</test>5455<test id="test -XX:-ReadIPInfoForRAS -XX:+ReadIPInfoForRAS">56<command>$EXE$ $NOREADIPINFOFORRAS$ $READIPINFOFORRAS$ -verbose:init -version</command>57<output type="success" caseSensitive="yes" regex="no">$READIPINFOFORRAS_MESSAGE$</output>58<output type="failure" caseSensitive="yes" regex="no">$NOREADIPINFOFORRAS_MESSAGE$</output>59</test>6061<test id="test -XX:+ReadIPInfoForRAS -XX:-ReadIPInfoForRAS">62<command>$EXE$ $READIPINFOFORRAS$ $NOREADIPINFOFORRAS$ -verbose:init -version</command>63<output type="success" caseSensitive="yes" regex="no">$NOREADIPINFOFORRAS_MESSAGE$</output>64<output type="failure" caseSensitive="yes" regex="no">$READIPINFOFORRAS_MESSAGE$</output>65</test>6667<test id="test -XX:OnOutOfMemoryError=">68<command>$EXE$ $JVM_HEAP_LIMIT$ $ONOUTOFMEMORYERROR_EQUALS$"$EXE$ -version" $ONOUTOFMEMORYERROR_JAR$</command>69<output type="success" caseSensitive="yes" regex="no">$JAVALANGOUTOFMEMORYERROR$</output>70<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">java (.)* -version</output>71<output type="required" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>72</test>7374<test id="Verify Xdump:exit behaves as expected">75<command>$EXE$ -Xdump:exit:events=vmstart</command>76<output type="success" caseSensitive="yes" regex="no">VM is shutting down. Reason: Unknown</output>77<output type="failure" caseSensitive="yes" regex="no">dump written to</output>78</test>7980<!-- -XX:+ExitOnOutOfMemoryError -->81<test id="Verify -XX:+ExitOnOutOfMemoryError behaves as expected with OutOfMemoryError">82<command>$EXE$ $JVM_HEAP_LIMIT$ -XX:+ExitOnOutOfMemoryError $ONOUTOFMEMORYERROR_JAR$</command>83<output type="success" caseSensitive="yes" regex="no">dump written to</output>84<output type="success" caseSensitive="yes" regex="no">VM is shutting down. Reason: java/lang/OutOfMemoryError</output>85</test>8687<!-- -XX:+ExitOnOutOfMemoryError -XX:-HeapDumpOnOutOfMemoryError -->88<test id="Verify -XX:+ExitOnOutOfMemoryError -XX:-HeapDumpOnOutOfMemoryError behaves as expected with OutOfMemoryError">89<command>$EXE$ $JVM_HEAP_LIMIT$ -XX:+ExitOnOutOfMemoryError -XX:-HeapDumpOnOutOfMemoryError $ONOUTOFMEMORYERROR_JAR$</command>90<output type="failure" caseSensitive="yes" regex="no">dump written to</output>91<output type="success" caseSensitive="yes" regex="no">VM is shutting down. Reason: java/lang/OutOfMemoryError</output>92</test>9394<!-- -XX:+PortableSharedCache -XX:-PortableSharedCache -->95<test id="Verify -XX:+PortableSharedCache -XX:-PortableSharedCache behaves as expected with the portable shared cache feature disabled">96<command>$EXE$ -Xshareclasses -Xtrace:print=j9jit.88 -XX:+PortableSharedCache -XX:-PortableSharedCache -version</command>97<output type="success" caseSensitive="yes" regex="no">PortableSharedCache is 0</output>98<output type="failure" caseSensitive="yes" regex="no">PortableSharedCache is 1</output>99</test>100101<!-- -XX:+PortableSharedCache -XX:-PortableSharedCache -->102<test id="Verify -XX:-PortableSharedCache -XX:+PortableSharedCache behaves as expected with the portable shared cache feature enabled">103<command>$EXE$ -Xshareclasses -Xtrace:print=j9jit.88 -XX:-PortableSharedCache -XX:+PortableSharedCache -version</command>104<output type="success" caseSensitive="yes" regex="no">PortableSharedCache is 1</output>105<output type="failure" caseSensitive="yes" regex="no">PortableSharedCache is 0</output>106</test>107</suite>108109110111