Path: blob/master/test/functional/cmdLineTests/cmdlinetestertests/cmdlinetests.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2009, 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="CmdLineTester Tests" timeout="600">2728<variable name="J9CMDLINE" value="$EXE$ -DRESJAR=$Q$$RESJAR$$Q$ -DTESTDIR=$Q$$TESTDIR$$Q$ -DCMDLINETESTERJAR=$Q$$CMDLINETESTERJAR$$Q$ -DRUN_SCRIPT_STRING=$Q$$RUN_SCRIPT_STRING$$Q$ -Dcmdlinetester.test=testval -jar $Q$$CMDLINETESTERJAR$$Q$ -explainExcludes -config $Q$$TESTDIR$$file.separator$" />2930<test id="Test 1 (correct number of passes/fails reported)">31<command>$J9CMDLINE$test1.xml$Q$</command>3233<!-- CmdLineTester needs at least one "success" output; you can think of34the second output as also being "required"35-->36<return value="0" type="required" />37<output regex="yes" type="required">Number of PASSED tests: 8 out of 8</output>38<output regex="yes" type="success">Number of FAILED tests: 0 out of 8</output>3940</test>4142<test id="Test 2 (variables in for loop)">43<command>$J9CMDLINE$test2.xml$Q$</command>44<return value="0" type="required" />45<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>46</test>4748<test id="Test 3 (simple variable evaluation loop)">49<command>$J9CMDLINE$test3.xml$Q$</command>50<return value="1" type="required" />51<output regex="yes" type="success">The variable "LOOP1" with value "$$LOOP1$$" cannot be resolved because it refers to itself somewhere along the variable substitution chain.</output>52</test>5354<test id="Test 4 (not as simple variable evaluation loop)">55<command>$J9CMDLINE$test4.xml$Q$</command>56<return value="1" type="required" />57<output regex="yes" type="success">The variable "LOOP2" with value "$$LOOP2a$$" cannot be resolved because it refers to itself somewhere along the variable substitution chain.</output>58</test>5960<test id="Test 5 (long variable evaluation loop)">61<command>$J9CMDLINE$test5.xml$Q$</command>62<return value="1" type="required" />63<output regex="yes" type="success">The variable "LOOP3" with value "$$TEMP11a$$" cannot be resolved because it refers to itself somewhere along the variable substitution chain.</output>64</test>6566<test id="Test 6 (even longer variable evaluation loop)">67<command>$J9CMDLINE$test6.xml$Q$</command>68<return value="1" type="required" />69<output regex="yes" type="success">The variable "LOOP3" with value "$$TEMP11a$$" cannot be resolved because it refers to itself somewhere along the variable substitution chain.</output>70</test>7172<test id="Test 7 (trying to fool loop detector)">73<command>$J9CMDLINE$test7.xml$Q$</command>74<return value="0" type="required" />75<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>76</test>7778<test id="Test 8 (trying to fool loop detector again)">79<command>$J9CMDLINE$test8.xml$Q$</command>80<return value="0" type="required" />81<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>82</test>8384<test id="Test 9 (variable does not exist)">85<command>$J9CMDLINE$test9.xml$Q$</command>86<return value="1" type="required" />87<output regex="yes" type="success">The variable "NO_EXIST" does not exist; original string used to construct the variable name was "NO_EXIST"</output>88</test>8990<test id="Test 10 (long non-looping variable chain)">91<command>$J9CMDLINE$test10.xml$Q$</command>92<return value="0" type="required" />93<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>94</test>9596<test id="Test 11 (long looping variable chain)">97<command>$J9CMDLINE$test11.xml$Q$</command>98<return value="1" type="required" />99<output regex="yes" type="success">The variable "TEMP0" with value "$$TEMP1$$" cannot be resolved because it refers to itself somewhere along the variable substitution chain.</output>100</test>101102<test id="Test 12 (curlies outside of dollar signs)">103<command>$J9CMDLINE$test12.xml$Q$</command>104<return value="0" type="required" />105<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>106</test>107108<test id="Test 13 (unclosed dollar sign before closing curly, discovered by expandVariable())">109<command>$J9CMDLINE$test13.xml$Q$</command>110<return value="1" type="required" />111<output regex="yes" type="success">The variable "TEMP0" with value "$$HI{$$HI}$$" cannot be resolved because it contains a '}' after an opening '$$'.</output>112</test>113114<test id="Test 14 (unclosed dollar sign before closing curly, discovered by evaluateVariables())">115<command>$J9CMDLINE$test14.xml$Q$</command>116<return value="1" type="required" />117<output regex="yes" type="success">The variable "TEMP0" with value "$$HI}$$" cannot be resolved because it contains a '}' after an opening '$$'.</output>118</test>119120<test id="Test 15 (unclosed '{' (no matching '}' before end of String), version 1)">121<command>$J9CMDLINE$test15.xml$Q$</command>122<return value="1" type="required" />123<output regex="yes" type="success">The variable "TEMP0" with value "$$HI{" cannot be resolved because it is missing at least one token signifying the end of a variable ('$$' or '}'); the first unbalanced start token is a '{'</output>124</test>125126<test id="Test 16 (unclosed '{' (no matching '}' before end of String), version 2)">127<command>$J9CMDLINE$test16.xml$Q$</command>128<return value="1" type="required" />129<output regex="yes" type="success">The variable "TEMP0" with value "$$HI{HI{}$$" cannot be resolved because it is missing at least one token signifying the end of a variable ('$$' or '}'); the first unbalanced start token is a '$$'</output>130</test>131132<test id="Test 17 (unclosed '$$' (no matching '$$' before end of String))">133<command>$J9CMDLINE$test17.xml$Q$</command>134<return value="1" type="required" />135<output regex="yes" type="success">The variable "TEMP0" with value "$$HI" cannot be resolved because it is missing at least one token signifying the end of a variable ('$$' or '}'); the first unbalanced start token is a '$$'</output>136</test>137138<test id="Test 18 (_variables Map overrides System.properties())">139<command>$J9CMDLINE$test18.xml$Q$</command>140<return value="0" type="required" />141<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>142</test>143144<test id="Test 19 (_variables Map does not override System.properties())">145<command>$J9CMDLINE$test19.xml$Q$</command>146<return value="0" type="required" />147<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>148</test>149150<test id="Test 20 ($$$$$$$$$$ should give error (unclosed variable))">151<command>$J9CMDLINE$test20.xml$Q$</command>152<return value="1" type="required" />153<output regex="yes" type="success">The variable "TEMP" with value "$$$$$$$$$$" cannot be resolved because it is missing at least one token signifying the end of a variable ('$$' or '}'); the first unbalanced start token is a '$$'</output>154</test>155156<test id="Test 21 ($$$$$$$$$$$$ should be fine)">157<command>$J9CMDLINE$test21.xml$Q$</command>158<return value="0" type="required" />159<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>160</test>161162<test id="Test 22 ($$HI$$$$ should give error (unclosed variable))">163<command>$J9CMDLINE$test22.xml$Q$</command>164<return value="1" type="required" />165<output regex="yes" type="success">The variable "TEMP" with value "$$HI$$$$" cannot be resolved because it is missing at least one token signifying the end of a variable ('$$' or '}'); the first unbalanced start token is a '$$'</output>166</test>167168<test id="Test 23 ($$HI$$$$BYE$$$$HI$$ should be fine)">169<command>$J9CMDLINE$test23.xml$Q$</command>170<return value="0" type="required" />171<output regex="yes" type="success">Number of FAILED tests: 0 out of \d</output>172</test>173174<test id="Test 24 (outputting number of failed tests)">175<command>echo FINAL failed tests: $cmdlinetester.failed_tests$</command>176<return value="0" type="required" />177<output regex="yes" type="success">FINAL failed tests: \d</output>178</test>179180</suite>181182183184185