Skip to content

Commit 793be2e

Browse files
committed
Update tests to use JavatestUtil
-This code updates the custom tests to use JavatestUtil instead of JavaTestRunner. resolves: adoptium#4864 Signed-off-by: Anna Babu Palathingal <[email protected]>
1 parent 194e8b8 commit 793be2e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jck/jck.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ ifeq ($(USE_JRE),1)
126126
JAVA_TO_TEST = $(JRE_COMMAND)
127127
endif
128128

129-
JCK_CMD_TEMPLATE = $(JAVA_TO_TEST) -Djvm.options=$(Q)$(JVM_OPTIONS)$(Q) -Dother.opts=$(Q)$(OTHER_OPTS)$(Q) -cp $(TEST_ROOT)/jck/jtrunner/bin JavaTestRunner resultsRoot=$(REPORTDIR) testRoot=$(TEST_ROOT) jckRoot=$(JCK_ROOT) jckversion=$(JCK_VERSION) spec=$(SPEC) configAltPath=$(CONFIG_ALT_PATH) $(APPLICATION_OPTIONS)
129+
JCK_CMD_TEMPLATE = $(JAVA_TO_TEST) -Djvm.options=$(Q)$(JVM_OPTIONS)$(Q) -Dother.opts=$(Q)$(OTHER_OPTS)$(Q) -cp $(TEST_ROOT)/jck/jtrunner/bin JavatestUtil testRoot=$(TEST_ROOT) jckRoot=$(JCK_ROOT) jckversion=$(JCK_VERSION) spec=$(SPEC) configAltPath=$(CONFIG_ALT_PATH) $(APPLICATION_OPTIONS)
130+
130131
WORKSPACE=/home/jenkins/jckshare/workspace/output_$(UNIQUEID)/$@
131132

132133
ifneq ($(filter aix_ppc-64 zos_390 linux_ppc-64_le linux_390-64, $(SPEC)),)

jck/jck_target_folder_check/jck_target_folder_check.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ crossCheckTestFoldersIn() {
9696
existingTargets=$( cat "${listOfExistingTargets}" )
9797
if [[ ! " $existingTargets " =~ $tokenToSearch ]] ; then
9898
echo "New test folder detected: $line | Please add target: jck-$tokenToSearch"
99-
command='<command>$(JCK_CMD_TEMPLATE) -test-args=$(Q)tests='${tokens[1]}/${tokens[2]}',jckRoot=$(JCK_ROOT),jckversion=$(JCK_VERSION),testsuite='$testTypeToUpper'$(Q); \'
100-
status='$(TEST_STATUS)</command>'
101-
echo "<test>"
99+
command='<command>$(JCK_CMD_TEMPLATE) tests='${tokens[1]}/${tokens[2]}' -DjckRoot=$(JCK_ROOT) -Djckversion=$(JCK_VERSION) -Dtestsuite='$testTypeToUpper'; \
100+
$(TEST_STATUS)</command>'
101+
echo "<test>"
102102
echo " <testCaseName>jck-$tokenToSearch</testCaseName>"
103103
echo " <variations>"
104104
echo " <variation>NoOptions</variation>"

0 commit comments

Comments
 (0)