Skip to content

Commit

Permalink
fix stf to STF (#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
xius666 authored Oct 27, 2021
1 parent c478761 commit b12e3cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
3 changes: 2 additions & 1 deletion buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,9 @@ def setup() {
env.OPENJ9_SYSTEMTEST_REPO = openj9SystemTest[0]
env.OPENJ9_SYSTEMTEST_BRANCH = openj9SystemTest[1]
}

if (!params.USE_TESTENV_PROPERTIES && params.STF_OWNER_BRANCH) {
String[] stf = getGitRepoBranch(params.STF_OWNER_BRANCH, "adoptium:master", "stf")
String[] stf = getGitRepoBranch(params.STF_OWNER_BRANCH, "adoptium:master", "STF")
env.STF_REPO = stf[0]
env.STF_BRANCH = stf[1]
}
Expand Down
30 changes: 15 additions & 15 deletions system/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
</exec>

<echo message="git rev-parse ${stf_branch} "/>
<exec executable="git" failonerror="false" dir="${SYSTEMTEST_ROOT}/stf" outputproperty="stf_sha1" resultproperty="code">
<exec executable="git" failonerror="false" dir="${SYSTEMTEST_ROOT}/STF" outputproperty="stf_sha1" resultproperty="code">
<arg value="rev-parse"/>
<arg value="${stf_branch}"/>
</exec>
<if>
<equals arg1="${code}" arg2="128"/>
<then>
<echo message="git rev-parse origin/${stf_branch}"/>
<exec executable="git" failonerror="true" dir="${SYSTEMTEST_ROOT}/stf" outputproperty="stf_sha2" resultproperty="code2">
<exec executable="git" failonerror="true" dir="${SYSTEMTEST_ROOT}/STF" outputproperty="stf_sha2" resultproperty="code2">
<arg value="rev-parse"/>
<arg value="origin/${stf_branch}"/>
</exec>
Expand All @@ -91,7 +91,7 @@
</then>
</if>
<echo message="git checkout -q -f ${stf_sha} "/>
<exec executable="git" failonerror="true" dir="${SYSTEMTEST_ROOT}/stf" >
<exec executable="git" failonerror="true" dir="${SYSTEMTEST_ROOT}/STF" >
<arg value="checkout"/>
<arg value="-q"/>
<arg value="-f"/>
Expand All @@ -101,24 +101,24 @@
<isset property="isZOS" />
<then>
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${SYSTEMTEST_ROOT}/stf/.git/info" includes="**/*"/>
<fileset dir="${SYSTEMTEST_ROOT}/STF/.git/info" includes="**/*"/>
</delete>
<mkdir dir="${SYSTEMTEST_ROOT}/stf/.git/info" />
<move file="${SYSTEMTEST_ROOT}/stf/.gitattributes.zos" tofile="${SYSTEMTEST_ROOT}/stf/.git/info/attributes" />
<exec executable="git" dir="${SYSTEMTEST_ROOT}/stf" failonerror="false">
<mkdir dir="${SYSTEMTEST_ROOT}/STF/.git/info" />
<move file="${SYSTEMTEST_ROOT}/STF/.gitattributes.zos" tofile="${SYSTEMTEST_ROOT}/STF/.git/info/attributes" />
<exec executable="git" dir="${SYSTEMTEST_ROOT}/STF" failonerror="false">
<arg value="rm" />
<arg value="--cached" />
<arg value="-r" />
<arg value="-q" />
<arg value="." />
</exec>
<exec executable="git" dir="${SYSTEMTEST_ROOT}/stf" failonerror="false">
<exec executable="git" dir="${SYSTEMTEST_ROOT}/STF" failonerror="false">
<arg value="reset" />
<arg value="--hard" />
</exec>
</then>
</if>
<checkGitRepoSha repoDir="${SYSTEMTEST_ROOT}/stf" />
<checkGitRepoSha repoDir="${SYSTEMTEST_ROOT}/STF" />
</target>
<target name="clone_systemtest">
<echo message="git clone -q ${openjdk_systemtest_repo} "/>
Expand Down Expand Up @@ -272,14 +272,14 @@
<target name="check_systemtest" depends="common_init">
<if>
<not>
<available file="${SYSTEMTEST_ROOT}/stf" type="dir" />
<available file="${SYSTEMTEST_ROOT}/STF" type="dir" />
</not>
<then>
<echo message="${SYSTEMTEST_ROOT}/stf does not exist, clone from GitHub" />
<echo message="${SYSTEMTEST_ROOT}/STF does not exist, clone from GitHub" />
<antcall target="clone_stf" inheritall="true" />
</then>
<else>
<echo message="${SYSTEMTEST_ROOT}/stf exists, skip cloning" />
<echo message="${SYSTEMTEST_ROOT}/STF exists, skip cloning" />
</else>
</if>
<if>
Expand Down Expand Up @@ -332,8 +332,8 @@
</target>

<target name="common_dist" description="generate the distribution">
<copy todir="${SYSTEMTEST_DEST}/stf">
<fileset dir="${SYSTEMTEST_ROOT}/stf" includes="**" />
<copy todir="${SYSTEMTEST_DEST}/STF">
<fileset dir="${SYSTEMTEST_ROOT}/STF" includes="**" />
</copy>
<copy todir="${SYSTEMTEST_DEST}/aqa-systemtest" failonerror="false">
<fileset dir="${SYSTEMTEST_ROOT}/aqa-systemtest" includes="**" />
Expand Down Expand Up @@ -392,6 +392,6 @@
<ant antfile="${SYSTEMTEST_ROOT}/openj9-systemtest/openj9.build/build.xml" dir="${SYSTEMTEST_ROOT}/openj9-systemtest/openj9.build" inheritAll="false" target="clean"/>
</then>
</if>
<ant antfile="${SYSTEMTEST_ROOT}/stf/stf.build/build.xml" dir="${SYSTEMTEST_ROOT}/stf/stf.build" inheritAll="false" target="clean"/>
<ant antfile="${SYSTEMTEST_ROOT}/STF/stf.build/build.xml" dir="${SYSTEMTEST_ROOT}/STF/stf.build" inheritAll="false" target="clean"/>
</target>
</project>
4 changes: 2 additions & 2 deletions system/systemtest.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ ifeq (,$(findstring $(JDK_IMPL),hotspot))
endif

define SYSTEMTEST_CMD_TEMPLATE
perl $(SYSTEMTEST_RESROOT)$(D)stf$(D)stf.core$(D)scripts$(D)stf.pl \
-test-root=$(Q)$(SYSTEMTEST_RESROOT)$(D)stf;$(SYSTEMTEST_RESROOT)$(D)aqa-systemtest$(OPENJ9_PRAM)$(Q) \
perl $(SYSTEMTEST_RESROOT)$(D)STF$(D)stf.core$(D)scripts$(D)stf.pl \
-test-root=$(Q)$(SYSTEMTEST_RESROOT)$(D)STF;$(SYSTEMTEST_RESROOT)$(D)aqa-systemtest$(OPENJ9_PRAM)$(Q) \
-systemtest-prereqs=$(Q)$(SYSTEMTEST_RESROOT)$(D)systemtest_prereqs$(Q) \
-java-args=$(SQ)$(JVM_OPTIONS)$(SQ) \
-results-root=$(REPORTDIR)
Expand Down

0 comments on commit b12e3cf

Please sign in to comment.