Skip to content

Instructions for building and running JakartaEE TCK bundle

Anand Francis J edited this page Nov 9, 2018 · 20 revisions

Build instructions - JakartaEE TCK Bundle

System Requirements

  • JDK 8u191+
  • Apache Ant 1.10.5+
  • JTHarness 5.0 (Included in the repository)

Steps to build the bundle

  1. Clone the https://github.com/eclipse-ee4j/jakartaee-tck repository to your local directory.
  2. Edit the properties in jakartaee-tck/install/j2ee/bin/ts.jte. The default values in ts.jte file would work with the latest released version of the GlassFish build. If you are compiling it against a different JavaEE 8 compliant server, you need to adjust the below properties accordingly.
javaee.home=
javaee.home.ri=
endorsed.dirs=
endorsed.dirs.ri=
implementation.classes.ri=
implementation.classes=
sigTestClasspath=
  1. Set the following environment variables
     export WORKSPACE=/cloned/directory/for/jakartaee-tck
     export GF_BUNDLE_URL=https://download.oracle.com/glassfish/5.0.1/nightly/latest-glassfish.zip
     export GF_HOME=/path/to/install/glassfish
     export ANT_HOME=/path/to/apache-ant
     export JAVA_HOME=/path/to/jdk8
     export PATH=$JAVA_HOME/bin:$ANT_HOME/bin/:$PATH
  1. Run the wrapper build script
$WORKSPACE/docker/build_jakartaeetck.sh
  1. If the build is successful, the Jakarta EE TCK bundle would be available at the below location. $WORKSPACE/release/JAVAEE_BUILD/latest/javaeetck-8.0_<date>.zip

Run instructions - JakartaEE TCK Bundle

System Requirements

  • JDK 8u191+
  • Apache Ant 1.10.5+
  • JTHarness 5.0 (Included in the repository)
  • Java Mail Server
  • JWSDP 1.3 (Require for JAXR test suite, that needs UDDI repository)
  • LDAP Server (Required by Security API test suite, unbound-ldapsdk 4.0 is used by default)
  1. Extract the JakartaEE TCK bundle to a local directory.
  2. Set the following environment variables
     export CTS_HOME=/directory/where/jakartaeetck/bundle/was/extracted
     export GF_BUNDLE_URL=https://download.oracle.com/glassfish/5.0.1/nightly/latest-glassfish.zip
     export PROFILE=full
     export ANT_HOME=/path/to/apache-ant
     export JAVA_HOME=/path/to/jdk8
     export PATH=$JAVA_HOME/bin:$ANT_HOME/bin/:$PATH
  1. Run the wrapper script for running a specific test suite in the JakartaEE TCK bundle.
$WORKSPACE/docker/run_jakartaeetck.sh
  1. After a successful run, the test reports would be available at ${CTS_HOME}/jakartaeetck-report and the detailed test logs would be available at ${CTS_HOME}/jakartaeetck-work
Clone this wiki locally