export JBOSS_HOME=...
cd $JBOSS_HOME/bin
./standalone.sh
wget https://download.eclipse.org/jakartaee/batch/2.1/jakarta.batch.official.tck-2.1.1.zip
unzip jakarta.batch.official.tck-2.1.1.zip
export BATCH_TCK_DIR=`pwd`/jakarta.batch.official.tck-2.1.1
clone jberet-tck-porting repo, and build and deploy to WildFly to create test datasource and database
git clone --depth=1 https://github.com/jberet/jberet-tck-porting.git
export JBERET_PORTING_DIR=`pwd`/jberet-tck-porting
cd $JBERET_PORTING_DIR
mvn -ntp package
/bin/cp $JBERET_PORTING_DIR/target/jberet-tck-porting.jar $JBOSS_HOME/standalone/deployments/
/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/sigtest/pom.xml $BATCH_TCK_DIR/runners/sigtest/pom.xml
/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/se-classpath/pom.xml $BATCH_TCK_DIR/runners/se-classpath/pom.xml
/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/platform-arquillian/pom.xml $BATCH_TCK_DIR/runners/platform-arquillian/pom.xml
/bin/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
cd $BATCH_TCK_DIR/runners/sigtest/
mvn -ntp verify
cd $BATCH_TCK_DIR/runners/se-classpath/
mvn -ntp verify
cd $BATCH_TCK_DIR/runners/platform-arquillian/
mvn -ntp verify
$JBOSS_HOME/bin/jboss-cli.sh --connect --commands="undeploy jberet-tck-porting.jar, shutdown"