-
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 13, 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 (Required by JAXR test suite, which uses UDDI registry)
- 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
export MAIL_USER="[email protected]"
export MAIL_USER="[email protected]"
export LANG="en_US.UTF-8"
- If JAXR tests need to be run, then the UDDI Registry (part of JWSDP 1.3) should be started using the cts-base docker image.
docker run --rm -it --network host anajosep/cts-base:0.1 bash -c "/opt/jwsdp-1.3/bin/startup.sh; cat"
This would start JWSDP server at http://localhost:8080
.
- If Javamail server related tests(these tests are under suites - javamail, samples, servlet) need to be run, and no mail server is available for testing, then the mail server can be started using the cts-mailserver docker image (it internally uses Apache James Mailserver) as follows:
docker run --rm -it -p 1025:25 -p 1143:143 anajosep/cts-mailserver:0.1 bash -c "/root/startup.sh"
This would start the mail server and expose it through ports 1025 and 1143. The mail user name is "[email protected]".
set the Environment variable MAIL_USER
to [email protected]
- Run the wrapper script for running a specific test suite in the JakartaEE TCK bundle.
$WORKSPACE/docker/run_jakartaeetck.sh suite_name1
$WORKSPACE/docker/run_jakartaeetck.sh suite_name1_<vehicle-name>
$WORKSPACE/docker/run_jakartaeetck.sh suite_name1/sub-suite
eg:
$WORKSPACE/docker/run_jakartaeetck.sh jms
$WORKSPACE/docker/run_jakartaeetck.sh jms_servlet
$WORKSPACE/docker/run_jakartaeetck.sh jms/ee
- 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