Path: blob/master/test/functional/cmdLineTests/shareClassTests/DataHelperTests/DataHelperTests_8.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no"?>12<!--3Copyright (c) 2008, 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">25<suite id="Shared Classes DataCaching Helper API tests">2627<variable name="TESTCACHENAME" value="testCache"/>2829<!-- Used to set which mode the test cases are run in -->30<variable name="currentMode" value="-Xshareclasses:reset,name=$TESTCACHENAME$"/>3132<variable name="mode204" value="-Xshareclasses:reset,name=$TESTCACHENAME$"/>33<variable name="mode205" value="-Xshareclasses:reset,name=$TESTCACHENAME$,noClasspathCacheing"/>34<variable name="mode208" value="-Xshareclasses:reset,name=$TESTCACHENAME$,noaot"/>35<variable name="mode209" value="-Xaot:forceAOT,count=0 -Xshareclasses:reset,name=$TESTCACHENAME$"/>36<variable name="mode210" value="-Xits0 -Xshareclasses:reset,name=$TESTCACHENAME$"/>37<variable name="mode211" value="-Xits2000 -Xshareclasses:reset,name=$TESTCACHENAME$"/>38<variable name="mode212" value="-Xits50000 -Xshareclasses:reset,name=$TESTCACHENAME$"/>39<variable name="mode213" value="-Xshareclasses:reset,name=$TESTCACHENAME$,noReduceStoreContention"/>40<variable name="mode214" value="-Xshareclasses:reset,name=$TESTCACHENAME$,modified=context1"/>4142<variable name="currentMode" value="$mode204$"/>4344<!-- set currentMode variable depending on the value of loopIndex -->45<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>46<if testVariable="SCMODE" testValue="205" resultVariable="currentMode" resultValue="$mode205$"/>47<if testVariable="SCMODE" testValue="206" resultVariable="currentMode" resultValue="$mode206$"/>48<if testVariable="SCMODE" testValue="208" resultVariable="currentMode" resultValue="$mode208$"/>49<if testVariable="SCMODE" testValue="209" resultVariable="currentMode" resultValue="$mode209$"/>50<if testVariable="SCMODE" testValue="210" resultVariable="currentMode" resultValue="$mode210$"/>51<if testVariable="SCMODE" testValue="211" resultVariable="currentMode" resultValue="$mode211$"/>52<if testVariable="SCMODE" testValue="212" resultVariable="currentMode" resultValue="$mode212$"/>53<if testVariable="SCMODE" testValue="213" resultVariable="currentMode" resultValue="$mode213$"/>54<if testVariable="SCMODE" testValue="214" resultVariable="currentMode" resultValue="$mode214$"/>5556<echo value=" "/>57<echo value="#######################################################"/>58<echo value="Running tests with command line options: $currentMode$"/>59<echo value=" "/>60<exec command="$JAVA_EXE$ -version" quiet="false"/>6162<variable name="BOOTCP" value=" "/>63<variable name="SECURITY_ON" value="-Djava.security.policy==java.good.policy -Djava.security.manager"/>64<variable name="SECURITY_ON_READONLY_BADPOLICY" value="-Djava.security.policy==java.bad.readonly.policy -Djava.security.manager"/>65<variable name="SECURITY_ON_WRITEONLY_BADPOLICY" value="-Djava.security.policy==java.bad.writeonly.policy -Djava.security.manager"/>6667<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>6869<test id="check the datacaching classloader is ok" timeout="600" runPath=".">70<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest01</command>71<output type="success" caseSensitive="yes" regex="no">test successful</output>72<output type="failure" caseSensitive="no" regex="no">failed</output>73<output type="failure" caseSensitive="no" regex="no">exception:</output>74<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>75</test>767778<test id="simple caching of a resource" timeout="600" runPath=".">79<command>$JAVA_EXE$ $currentMode$ -classpath . apitesting.datahelper.DataCachingTest02</command>80<output type="success" caseSensitive="yes" regex="no">test successful</output>81<output type="failure" caseSensitive="no" regex="no">failed</output>82<output type="failure" caseSensitive="no" regex="no">exception:</output>83<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>84</test>8586<test id="simple caching of a resource, with security on" timeout="600" runPath=".">87<command>$JAVA_EXE$ $currentMode$ $SECURITY_ON$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest02</command>88<output type="success" caseSensitive="yes" regex="no">test successful</output>89<output type="failure" caseSensitive="no" regex="no">failed</output>90<output type="failure" caseSensitive="no" regex="no">exception:</output>91<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>92</test>9394<test id="simple caching of a resource, with security on but readonly policy" timeout="600" runPath=".">95<command>$JAVA_EXE$ $currentMode$,verboseHelper $BOOTCP$ -classpath . $SECURITY_ON_READONLY_BADPOLICY$ apitesting.datahelper.DataCachingTest02</command>96<output type="success" caseSensitive="yes" regex="no">storeSharedData('fileone.txt',...) has failed!</output>97<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>98</test>99100<test id="simple caching of a resource, with security on but writeonly policy" timeout="600" runPath=".">101<command>$JAVA_EXE$ $currentMode$,verboseHelper $BOOTCP$ -classpath . $SECURITY_ON_WRITEONLY_BADPOLICY$ apitesting.datahelper.DataCachingTest02</command>102<output type="success" caseSensitive="yes" regex="no">should have found the resource but no data retrieved</output>103<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>104</test>105106107<test id="caching of multiple resources" timeout="600" runPath=".">108<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest03</command>109<output type="success" caseSensitive="yes" regex="no">test successful</output>110<output type="failure" caseSensitive="no" regex="no">failed</output>111<output type="failure" caseSensitive="no" regex="no">exception:</output>112<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>113</test>114115<test id="caching of multiple resources, security on" timeout="600" runPath=".">116<command>$JAVA_EXE$ $currentMode$ $SECURITY_ON$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest03</command>117<output type="success" caseSensitive="yes" regex="no">test successful</output>118<output type="failure" caseSensitive="no" regex="no">failed</output>119<output type="failure" caseSensitive="no" regex="no">exception:</output>120<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>121</test>122123124125<test id="marking cache entries stale for bytedata resources" timeout="600" runPath=".">126<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest04</command>127<output type="success" caseSensitive="yes" regex="no">test successful</output>128<output type="failure" caseSensitive="no" regex="no">failed</output>129<output type="failure" caseSensitive="no" regex="no">exception:</output>130<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>131</test>132133134<test id="more stale marking" timeout="600" runPath=".">135<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest05</command>136<output type="success" caseSensitive="yes" regex="no">test successful</output>137<output type="failure" caseSensitive="no" regex="no">failed</output>138<output type="failure" caseSensitive="no" regex="no">exception:</output>139<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>140</test>141142143144<test id="using same token for multiple resources" timeout="600" runPath=".">145<command>$JAVA_EXE$ $currentMode$ $BOOTCP$ -classpath . apitesting.datahelper.DataCachingTest06</command>146<output type="success" caseSensitive="yes" regex="no">test successful</output>147<output type="failure" caseSensitive="no" regex="no">failed</output>148<output type="failure" caseSensitive="no" regex="no">exception:</output>149<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>150</test>151152<exec command="$JAVA_EXE$ -Xshareclasses:destroyAll" quiet="false"/>153154</suite>155156157