From aba7a04a67b9038ff72350c6a3aa73d9bcd36153 Mon Sep 17 00:00:00 2001 From: Jason Katonica <122893202+jasonkatonica@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:20:03 -0400 Subject: [PATCH] Make use of mvn for OpenJCEPlus test execution (#5479) * Make use of mvn for OpenJCEPlus test execution This update allows for the test infrastructure to make use of `mvn` directly for testing `OpenJCEPlus`. This allows for `mvn` to control dependency usage along with using the same test infrastructure and plugins in use within the open source project. Signed-off-by: Jason Katonica * Use fully qualified names instead of PATH --------- Signed-off-by: Jason Katonica --- functional/OpenJcePlusTests/build.xml | 47 +------- functional/OpenJcePlusTests/playlist.xml | 18 ++- functional/OpenJcePlusTests/test.xml | 136 ----------------------- 3 files changed, 20 insertions(+), 181 deletions(-) delete mode 100644 functional/OpenJcePlusTests/test.xml diff --git a/functional/OpenJcePlusTests/build.xml b/functional/OpenJcePlusTests/build.xml index ae457f2f1f..5d0b2fea1a 100644 --- a/functional/OpenJcePlusTests/build.xml +++ b/functional/OpenJcePlusTests/build.xml @@ -26,7 +26,7 @@ - + @@ -105,52 +105,13 @@ - - - - Ant version is ${ant.version} - ============COMPILER SETTINGS============ - ===fork: yes - ===executable: ${compiler.javac} - ===debug: on - ===destdir: ${DEST} - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - + + diff --git a/functional/OpenJcePlusTests/playlist.xml b/functional/OpenJcePlusTests/playlist.xml index 81d74c5b7c..5c4e5de15f 100644 --- a/functional/OpenJcePlusTests/playlist.xml +++ b/functional/OpenJcePlusTests/playlist.xml @@ -26,8 +26,22 @@ cp -r ${TEST_RESROOT}/* ${REPORTDIR}/. ; \ - ant -f test.xml -DTEST_JAVA=$(Q)$(JAVA_COMMAND)$(Q) launch_test; \ - $(TEST_STATUS) + cd ${REPORTDIR}; \ + chmod 755 *.sh; \ + mkdir apache-maven; \ + tar xvzf apache-maven-bin.tar.gz -C apache-maven --strip-components 1; \ + ls -al; \ + ${REPORTDIR}/apache-maven/bin/mvn -version; \ + ${REPORTDIR}/apache-maven/bin/mvn -f ${REPORTDIR}/pom.xml \ + -Denforcer.skip \ + -Dtestenvironment=standalonebundled \ + clean \ + test-compile \ + surefire:test; \ + $(TEST_STATUS); \ + mkdir junitreports; \ + cp -r ${REPORTDIR}/target/surefire-reports/* junitreports + extended diff --git a/functional/OpenJcePlusTests/test.xml b/functional/OpenJcePlusTests/test.xml deleted file mode 100644 index 856066abe2..0000000000 --- a/functional/OpenJcePlusTests/test.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - Ant script to run the tests for ibm.jceplus.junit.TestMemStressAll, - ibm.jceplus.junit.TestMultiThread, - ibm.jceplus.junit.TestMultithreadFIPS, - ibm.jceplus.junit.TestAll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -