Skip to content

Instructions for running the nightly engineering build of Platform TCK with Podman (currently for EE 10)

Scott Marlow edited this page Aug 11, 2022 · 5 revisions

Create new Fedora VM/container As root user:

podman run -it fedora /bin/bash

Install some tools (including openjdk version "JDK 11")

yum install -y zip java-11-openjdk-devel wget vim git unzip

change into /tmp/ee10

mkdir /tmp/ee10
cd /tmp/ee10

Download/extract Platform TCK nightly build

wget https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10/staged/eftl/jakarta-jakartaeetck-10.0.0.zip
unzip jakarta-jakartaeetck-10.0.0.zip 

set WORKSPACE=$PWD

export WORKSPACE=$PWD

ensure Java is setup completely

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export PATH=/usr/lib/jvm/java-1.11.0-openjdk/bin:$PATH

specify nightly build of GlassFish to be used

export GF_BUNDLE_URL=https://download.eclipse.org/ee4j/glassfish/glassfish-7.0.0-SNAPSHOT-nightly.zip

setup ANT

wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.6-bin.zip && unzip -o apache-ant-1.10.6-bin.zip &&  rm -f apache-ant-1.10.6-bin.zip && export ANT_HOME=$PWD/apache-ant-1.10.6 && export PATH=$ANT_HOME/bin:$PATH && export PATH=$ANT_HOME/bin/:$PATH
export ANT_OPTS="-Djavax.xml.accessExternalStylesheet=all -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=file,http -Duser.home=$HOME"
wget https://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
mv ant-contrib-1.0b3.jar $ANT_HOME/lib

update jakartaeetck/docker/run_jakartaeetck.sh to be executable

chmod +x jakartaeetck/docker/run_jakartaeetck.sh

Run samples tests (note that mail tests will fail since no mail server is running)

bash -x jakartaeetck/docker/run_jakartaeetck.sh samples 2>&1 | tee run_samples.log

Run a subset of tests under ejb30/lite/packaging/embed/provider

bash -x jakartaeetck/docker/run_jakartaeetck.sh ejb30/lite/packaging/embed/provider 2>&1 | tee tck.log

Example of copying files from Podman container to local filesystem

Assuming the Podman container is called gallant_shamir which mine was randomly named, you could copy GlassFish server log + test output .jte file to your /tmp folder as follows:

podman cp gallant_shamir:/tmp/ee10/vi/glassfish7/glassfish/domains/domain1/logs/server.log /tmp

podman cp gallant_shamir:/tmp/ee10/jakartaeetck-work/ejb30_lite_packaging_embed_provider/com/sun/ts/tests/ejb30/lite/packaging/embed/provider/Client_customProvider_from_ejbembed.jtr /tmp

Clone this wiki locally