Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
script for running CDI TCK locally.
cd /tmp
WORKSPACE=$PWD
wget --no-cache https://download.eclipse.org/jakartaee/cdi/3.0/cdi-tck-3.0.3-dist.zip -O latest-cdi-tck-dist.zip
unzip latest-cdi-tck-dist.zip
MAVEN_OPTS="-Xmx1800m -XX:-UseGCOverheadLimit"
export MAVEN_OPTS
export JBOSS_DIR=wildfly
export JBOSS_ZIP=./wildfly.zip
cd cdi-tck-3.0.3/artifacts
export TCK_VERSION=3.0.3
bash artifact-install.sh $TCK_VERSION
cd $WORKSPACE
git clone https://github.com/scottmarlow/core weld
cd weld
git checkout wildfly_jdk17
mvn clean install -DskipTests
export JBOSS_HOME=${WORKSPACE}/${JBOSS_DIR}
mvn $JDK17OPTIONS clean package -Dtck -Dcdi.tck-3-0.version=${TCK_VERSION} -f jboss-as/pom.xml
mvn $JDK17OPTIONS clean verify -f jboss-tck-runner/pom.xml -Dincontainer -Dcdi.tck-3-0.version=${TCK_VERSION} -Dmaven.test.failure.ignore=true
# to debug, run maven with -Dsurefire.plugin.jdk9.args=-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y
# to run a specific test, run maven with test -Dtest=org.jboss.cdi.tck.tests.implementation.simple.resource.env.EnvInjectionTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment