Skip to content

Commit

Permalink
Merge pull request #645 from psoujany/fix-jtreg
Browse files Browse the repository at this point in the history
Use jtreg6.1 for JDK11/17 on z/OS
  • Loading branch information
llxia authored Dec 3, 2024
2 parents 4ab5104 + 0577a7f commit df8c009
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/getDependencies.pl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@
shafn => 'jtreg_7_3_1_1.tar.gz.sha256sum.txt',
shaalg => '256'
},
jtreg_6_1 => {
url => 'https://ci.adoptium.net/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/jtreg-6+1.tar.gz',
fname => 'jtreg_6_1.tar.gz',
shaurl => 'https://ci.adoptium.net/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/jtreg-6+1.tar.gz.sha256sum.txt',
shafn => 'jtreg_6_1.tar.gz.sha256sum.txt',
shaalg => '256'
},
jtreg_7_4_1 => {
url => 'https://ci.adoptium.net/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/jtreg-7.4+1.tar.gz',
fname => 'jtreg_7_4_1.tar.gz',
Expand Down
17 changes: 17 additions & 0 deletions scripts/getDependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,28 @@
<!-- set default LIB property to all -->
<property name="LIB" value="all"/>
<target name="getJtregVersion">
<condition property="jtregOnZ">
<and>
<contains string="${SPEC}" substring="zos"/>
<matches pattern="^(11|17)$" string="${JDK_VERSION}"/>
</and>
</condition>
<if>
<!-- versions 8-10, 12-16 -->
<matches pattern="^([89]|1[02-6])$" string="${JDK_VERSION}"/>
<then>
<property name="jtregTar" value="jtreg_5_1_b01"/>
</then>
<elseif>
<!--
# versions 11,17 on z/OS need to use jtreg6.1, due to encoding issues with jtreg7.*.
# For more details, refer openj9-openjdk-jdk17-zos/issues/928.
-->
<isset property="jtregOnZ"/>
<then>
<property name="jtregTar" value="jtreg_6_1"/>
</then>
</elseif>
<elseif>
<!-- versions 11, 17-23 -->
<matches pattern="^(11|1[7-9]|2[0-3])$" string="${JDK_VERSION}"/>
Expand All @@ -39,6 +55,7 @@
<property name="jtregTar" value="jtreg_7_4_1"/>
</else>
</if>
<echo message="jtreg version used is : ${jtregTar}"/>

<if>
<or>
Expand Down

0 comments on commit df8c009

Please sign in to comment.