-
Notifications
You must be signed in to change notification settings - Fork 109
Instructions for building and running JakartaEE TCK bundle
Anand Francis J edited this page Nov 9, 2018
·
20 revisions
- JDK 8u191+
- Apache Ant 1.10.5+
- JTHarness 5.0 (Included in the repository)
- Clone the https://github.com/eclipse-ee4j/jakartaee-tck repository to your local directory.
- 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=
- 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
- Run the wrapper build script
$WORKSPACE/docker/build_jakartaeetck.sh
- 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
- 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)
- Extract the JakartaEE TCK bundle to a local directory.
- 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
- Run the wrapper script for running a specific test suite in the JakartaEE TCK bundle.
$WORKSPACE/docker/run_jakartaeetck.sh
- 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