|
| 1 | +<?xml version="1.0"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | +# Licensed under the Apache License, Version 2.0 {the "License"}; |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +--> |
| 16 | + |
| 17 | +<project name="Launcher script for OpenJcePlusTests" default="help" basedir="."> |
| 18 | + <target name="help"> |
| 19 | + <echo>Ant script to run the tests for ibm.jceplus.junit.TestAll. |
| 20 | + </echo> |
| 21 | + </target> |
| 22 | + |
| 23 | + <target name="launch_test"> |
| 24 | + <echo message="Running ibm.jceplus.junit.TestAll in ${user.dir}" /> |
| 25 | + <echo message="Command: ${TEST_JAVA} -cp junit4.jar:hamcrest-core.jar:bcprov-jdk18on.jar:openjceplus-tests.jar --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=openjceplus/com.ibm.crypto.plus.provider.ock=ALL-UNNAMED ibm.jceplus.junit.TestAll" /> |
| 26 | + <mkdir dir="junitreports" /> |
| 27 | + <java jvm="${TEST_JAVA}" |
| 28 | + classname="org.apache.tools.ant.launch.Launcher" |
| 29 | + fork="true" |
| 30 | + failonerror="true" |
| 31 | + dir="${basedir}" |
| 32 | + timeout="3600000" |
| 33 | + taskname="test"> |
| 34 | + <classpath> |
| 35 | + <pathelement location="${ant.home}/lib/ant-launcher.jar" /> |
| 36 | + </classpath> |
| 37 | + <jvmarg value="-showversion" /> |
| 38 | + <arg value="-buildfile" /> |
| 39 | + <arg file="${ant.file}" /> |
| 40 | + <arg value="test" /> |
| 41 | + </java> |
| 42 | + </target> |
| 43 | + <target name="test"> |
| 44 | + <junit fork="yes" printsummary="on" showoutput="yes" haltonfailure="yes"> |
| 45 | + <jvmarg line="--add-exports=java.base/sun.security.util=ALL-UNNAMED" /> |
| 46 | + <jvmarg line="--add-exports=openjceplus/com.ibm.crypto.plus.provider.ock=ALL-UNNAMED" /> |
| 47 | + <classpath> |
| 48 | + <pathelement location="junit4.jar" /> |
| 49 | + <pathelement location="hamcrest-core.jar" /> |
| 50 | + <pathelement location="bcprov-jdk18on.jar" /> |
| 51 | + <pathelement location="openjceplus-tests.jar" /> |
| 52 | + </classpath> |
| 53 | + <formatter type="xml" /> |
| 54 | + <test name="ibm.jceplus.junit.TestAll" todir="junitreports"/> |
| 55 | + </junit> |
| 56 | + <echo message="ALL TESTS COMPLETED" /> |
| 57 | + </target> |
| 58 | +</project> |
0 commit comments