Path: blob/master/test/functional/cmdLineTests/SystemPropertiesTest/syspropstest.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2016, 2020 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="System Properties Converting Tests" timeout="200">27<variable name="ARGENABLE-UNI" value="-Xargencoding" />28<variable name="ARGENABLE-LATIN" value="-Xargencoding:latin" />29<variable name="ARGENABLE-UTF8" value="-Xargencoding:utf8" />30<variable name="LATIN" value="ISO-8859-1" />31<variable name="UTF8" value="UTF-8" />32<variable name="UNICODE" value="UNICODE" />33<variable name="DEFAULT" value="DEFAULT" />3435<!--36The tests put non-ascii characters in system property name and value (which is also hardcoded in the test Java application)37defined via -D, and confirms the characters are converted correctly in the resulting system properties38using the current code page for the platform.3940Usage of UNICODE parameter does make sense on Windows platforms only.4142Attention43we use non-ascii symbols in command line option. According to XML rule they appear as ™ þ and Ð44Please do not delete it45-->4647<test id="Test 1 Default Options">48<command>$EXE$ -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $DEFAULT$</command>49<output regex="no" type="success">test succeeded</output>50<output regex="no" type="required">test succeeded</output>51<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>52<output type="failure" caseSensitive="yes" regex="no">Exception:</output>53<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>54</test>5556<test id="Test 2 Enable Argument Encoding with Unicode Option">57<command>$EXE$ $ARGENABLE-UNI$ -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $UNICODE$</command>58<output regex="no" type="success">test succeeded</output>59<output regex="no" type="required">test succeeded</output>60<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>61<output type="failure" caseSensitive="yes" regex="no">Exception:</output>62<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>63</test>6465<test id="Test 3 Enable Argument Encoding with Latin Option">66<command>$EXE$ $ARGENABLE-LATIN$ -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $LATIN$</command>67<output regex="no" type="success">test succeeded</output>68<output regex="no" type="required">test succeeded</output>69<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</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>7374<test id="Test 4 Enable Argument Encoding with UTF-8 Option">75<command>$EXE$ $ARGENABLE-UTF8$ -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $UTF8$</command>76<output regex="no" type="success">test succeeded</output>77<output regex="no" type="required">test succeeded</output>78<output regex="no" type="failure">test failed</output>79<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>80<output type="failure" caseSensitive="yes" regex="no">Exception:</output>81<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>82</test>8384<test id="Test 5 Enable Argument Encoding and Property Converting Options">85<command>$EXE$ $ARGENABLE-LATIN$ -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $LATIN$</command>86<output regex="no" type="success">test succeeded</output>87<output regex="no" type="required">test succeeded</output>88<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>89<output type="failure" caseSensitive="yes" regex="no">Exception:</output>90<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>91</test>9293<test id="Test 6 Enable Property Converting - No Argument Encoding">94<command>$EXE$ -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $DEFAULT$</command>95<output regex="no" type="success">test succeeded</output>96<output regex="no" type="required">test succeeded</output>97<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>98<output type="failure" caseSensitive="yes" regex="no">Exception:</output>99<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>100</test>101102<test id="Test 7 detect invalid arguments">103<command>$EXE$ -Xargencodingfoo -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $DEFAULT$</command>104<output regex="no" type="success">JVMJ9VM007E Command-line option unrecognised</output>105<output regex="no" type="required">JVMJ9VM007E Command-line option unrecognised</output>106<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>107<output type="failure" caseSensitive="yes" regex="no">test succeeded</output>108<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>109</test>110111<test id="Test 8 disregard Argument Encoding with random Option">112<command>$EXE$ -Xargencoding:foo -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $DEFAULT$</command>113<output regex="no" type="success">test succeeded</output>114<output regex="no" type="required">test succeeded</output>115<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>116<output type="failure" caseSensitive="yes" regex="no">Exception:</output>117<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>118</test>119120<test id="Test 9 Test -Xnoargsconversion">121<command>$EXE$ -Xnoargsconversion -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $DEFAULT$</command>122<output regex="no" type="success">test succeeded</output>123<output regex="no" type="required">test succeeded</output>124<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>125<output type="failure" caseSensitive="yes" regex="no">Exception:</output>126<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>127</test>128129<test id="Test 10 Test corrupt -Xnoargsencodings">130<command>$EXE$ -Xnoargsconversionfoo -Dtestkey=TestVa»lue¡ -cp $Q$$JARPATH$$Q$ SysPropTest $DEFAULT$</command>131<output regex="no" type="success">JVMJ9VM007E Command-line option unrecognised</output>132<output regex="no" type="required">JVMJ9VM007E Command-line option unrecognised</output>133<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>134<output type="failure" caseSensitive="yes" regex="no">test succeeded</output>135<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>136</test>137138</suite>139140141