Path: blob/master/test/functional/cmdLineTests/CDSAdaptorTest/cdsadaptortest.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no"?>12<!--3Copyright (c) 2001, 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="CDS Adaptor CommandLineOptionTests Suite">2728<variable name="CACHENAME" value="cdsadaptor_cache" />2930<variable name="XSHARECLASSES" value="-Xshareclasses:name=$CACHENAME$" />3132<!-- NOTE: Update the version of org.eclipse.osgi whenever new version are checked in -->33<variable name="OSGI_JAR_PATH" value="$TEST_MATERIAL_DIR$$CPDL$$LIB_DIR$$PATHSEP$org.eclipse.osgi-3.16.100.jar" />3435<variable name="FRAMEWORK_BUNDLE_LOCATION" value="$TEST_MATERIAL_DIR$$PATHSEP$FrameworkBundles" />36<variable name="TEST_BUNDLE_LOCATION" value="$TEST_MATERIAL_DIR$$PATHSEP$CDSAdaptorOrphanTestBundles" />3738<test id="Test 0: Destroy existing shared class cache" timeout="600" runPath=".">39<command>$EXE$ $XSHARECLASSES$,destroy</command>40<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>41<output type="success" caseSensitive="yes" regex="no">is destroyed</output>42<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>43<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>44<output type="failure" caseSensitive="yes" regex="no">Exception:</output>45<output type="failure" caseSensitive="no" regex="no">corrupt</output>46<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>47</test>4849<test id="Test 1-a: Create a shared class cache while using weaving hooks" timeout="600" runPath=".">50<command>$EXE$ $XSHARECLASSES$ -cp $OSGI_JAR_PATH$ org.openj9.test.cdsadaptortest.CDSAdaptorOrphanTest -frameworkBundleLocation $FRAMEWORK_BUNDLE_LOCATION$ -testBundleLocation $TEST_BUNDLE_LOCATION$</command>51<output type="success" caseSensitive="no" regex="no">A message from modified class</output>52<output type="failure" caseSensitive="no" regex="no">original</output>53<output type="failure" caseSensitive="yes" regex="no">Exception:</output>54<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>55</test>5657<test id="Test 1-b: Check shared class cache for presence of Orphan class" timeout="600" runPath=".">58<command>$EXE$ $XSHARECLASSES$,printStats=orphan+romclass</command>59<output type="success" caseSensitive="no" regex="no">ORPHAN: org/openj9/test/testbundle/SomeMessageV1</output>60<output type="failure" caseSensitive="no" regex="no">ROMCLASS: org/openj9/test/testbundle/SomeMessageV1</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 1-c: Reuse previous cache without using weaving hooks" timeout="600" runPath=".">66<command>$EXE$ $XSHARECLASSES$ -cp $OSGI_JAR_PATH$ org.openj9.test.cdsadaptortest.CDSAdaptorOrphanTest -frameworkBundleLocation $FRAMEWORK_BUNDLE_LOCATION$ -testBundleLocation $TEST_BUNDLE_LOCATION$ -ignoreWeavingHookBundle</command>67<output type="success" caseSensitive="no" regex="no">A message from original class</output>68<output type="failure" caseSensitive="no" regex="no">modified</output>69<output type="failure" caseSensitive="yes" regex="no">Exception:</output>70<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>71</test>7273<test id="Test 1-d: Check shared class cache for presence of ROMClass class" timeout="600" runPath=".">74<command>$EXE$ $XSHARECLASSES$,printStats=orphan+romclass</command>75<output type="success" caseSensitive="no" regex="no">ORPHAN: org/openj9/test/testbundle/SomeMessageV1</output>76<output type="required" caseSensitive="no" regex="no">ROMCLASS: org/openj9/test/testbundle/SomeMessageV1</output>77<output type="failure" caseSensitive="yes" regex="no">Exception:</output>78<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>79</test>8081<test id="Test 1-e: Reuse previous cache while using weaving hooks" timeout="600" runPath=".">82<command>$EXE$ $XSHARECLASSES$ -cp $OSGI_JAR_PATH$ org.openj9.test.cdsadaptortest.CDSAdaptorOrphanTest -frameworkBundleLocation $FRAMEWORK_BUNDLE_LOCATION$ -testBundleLocation $TEST_BUNDLE_LOCATION$</command>83<output type="success" caseSensitive="no" regex="no">A message from modified class</output>84<output type="failure" caseSensitive="no" regex="no">original</output>85<output type="failure" caseSensitive="yes" regex="no">Exception:</output>86<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>87</test>8889<test id="Cleanup: Destroy any existing shared class cache" timeout="600" runPath=".">90<command>$EXE$ $XSHARECLASSES$,destroy</command>91<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>92<output type="success" caseSensitive="yes" regex="no">is destroyed</output>93<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>94<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>95<output type="failure" caseSensitive="yes" regex="no">Exception:</output>96<output type="failure" caseSensitive="no" regex="no">corrupt</output>97<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>98</test>99100</suite>101102103