Skip to content

Commit

Permalink
Merge pull request #13 from liweinan/WFLY-19134
Browse files Browse the repository at this point in the history
WFLY-19134 / Pass Batch TCK on Java 21
  • Loading branch information
liweinan authored Apr 24, 2024
2 parents bf420b9 + caca1ef commit c5e0e0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
matrix:
os: [ ubuntu-latest ] # bash script only runs on ubuntu
jdk-distribution: [ temurin ]
jdk-version: [ '11', '17' ]
jdk-version: [ '11', '17', '21' ]
batch-tck-ver: [ '2.1.5' ] # 2.1.1 Can't pass Java 21 tests, so remove it from testing.
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
Expand All @@ -32,4 +33,4 @@ jobs:
java-version: ${{ matrix.jdk-version }}
cache: 'maven'
- name: run setup script
run: ./run-tck.sh
run: SET_BATCH_TCK_VER=${{ matrix.batch-tck-ver }} ./run-tck.sh
10 changes: 7 additions & 3 deletions run-tck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ export JBOSS_HOME=$(pwd)/wildfly-${WFLY_VER}

cp $JBERET_PORTING_DIR/target/jberet-tck-porting.jar $JBOSS_HOME/standalone/deployments/

cp $JBERET_PORTING_DIR/src/main/resources/runners/sigtest/pom.xml $BATCH_TCK_DIR/runners/sigtest/pom.xml
cp $JBERET_PORTING_DIR/src/main/resources/runners/se-classpath/pom.xml $BATCH_TCK_DIR/runners/se-classpath/pom.xml
cp $JBERET_PORTING_DIR/src/main/resources/runners/platform-arquillian/pom.xml $BATCH_TCK_DIR/runners/platform-arquillian/pom.xml
cp $JBERET_PORTING_DIR/src/main/resources/runners/sigtest/pom-parent-param.xml $BATCH_TCK_DIR/runners/sigtest/pom.xml
cp $JBERET_PORTING_DIR/src/main/resources/runners/se-classpath/pom-parent-param.xml $BATCH_TCK_DIR/runners/se-classpath/pom.xml
cp $JBERET_PORTING_DIR/src/main/resources/runners/platform-arquillian/pom-parent-param.xml $BATCH_TCK_DIR/runners/platform-arquillian/pom.xml
cp $JBERET_PORTING_DIR/src/main/resources/runners/platform-arquillian/src/test/resources/arquillian.xml $BATCH_TCK_DIR/runners/platform-arquillian/src/test/resources/arquillian.xml

sed -ie "s/BATCH_PARENT_VER/${BATCH_TCK_VER}/g" $BATCH_TCK_DIR/runners/sigtest/pom.xml
sed -ie "s/BATCH_PARENT_VER/${BATCH_TCK_VER}/g" $BATCH_TCK_DIR/runners/se-classpath/pom.xml
sed -ie "s/BATCH_PARENT_VER/${BATCH_TCK_VER}/g" $BATCH_TCK_DIR/runners/platform-arquillian/pom.xml

# Run sigtest
pushd $BATCH_TCK_DIR/runners/sigtest
mvn install -Dversion.org.jberet.jberet-core=${jberet_ver}
Expand Down

0 comments on commit c5e0e0a

Please sign in to comment.