Skip to content

Commit

Permalink
Merge pull request #1345 from hangshao0/master
Browse files Browse the repository at this point in the history
Add shared class CML test cases
  • Loading branch information
llxia authored Mar 6, 2018
2 parents f07f963 + 85ede29 commit 5a0dbf6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">

<!-- Test 1 to Test 52: 68 tests -->
<!-- Test 1 to Test 54: 70 tests -->

<suite id="Shared Classes CommandLineOptionTests Suite ">

Expand Down Expand Up @@ -946,6 +946,30 @@
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<test id="Test 53: Make sure classes are being stored to the shared cache " timeout="600" runPath=".">
<command>$JAVA_EXE$ $currentMode$,verboseIO $CP_HANOI$ $PROGRAM_HANOI$</command>
<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Stored class java/.* in shared cache for class-loader id 0 with URL .* \(index</output>
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Stored class org/openj9/test/ivj/.* in shared cache for class-loader id [2-9].*[\\/]utils.jar \(index 0\)</output>

<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<test id="Test 54: Make sure classes are being found in the shared cache " timeout="600" runPath=".">
<command>$JAVA_EXE$ $currentMode$,verboseIO $CP_HANOI$ $PROGRAM_HANOI$</command>
<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Found class java/.* in shared cache for class-loader id 0</output>
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Found class org/openj9/test/ivj/.* in shared cache for class-loader id [2-9]</output>

<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<test id="At end destroy cache for cleanup" timeout="600" runPath=".">
<command>$JAVA_EXE$ $currentMode$,destroy</command>
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<test id="Test 4: Test classes are being found in the shared cache when running an application module" timeout="600" runPath=".">
<command>$JAVA_EXE$ $currentMode$,verboseIO --module-path $UTILSJAR$ -m utils/$PROGRAM_HANOI$</command>
<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Found class java/.* in shared cache for class-loader id 0</output>
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Found class org/openj9/test/ivj/.* in shared cache for class-loader id [2-9] with URL .*[\\/]utils.jar</output>

<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
</test>

<test id="At end destroy cache for cleanup" timeout="600" runPath=".">
<command>$JAVA_EXE$ $currentMode$,destroy</command>
Expand Down

0 comments on commit 5a0dbf6

Please sign in to comment.