Skip to content

Commit af6abc8

Browse files
committed
Enhances README and point to setup-tck91.sh
Renames update91tck.sh to setup-tck91.sh (tck 9.1 is now promoted) Removes obsolete POM comment Updates Johnzon to 1.2.16
1 parent 48a2371 commit af6abc8

File tree

4 files changed

+71
-34
lines changed

4 files changed

+71
-34
lines changed

README.adoc

+52-28
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,48 @@
1-
# TomEE-TCK
1+
= TomEE-TCK
22

3-
## GETTING SETUP
3+
== GETTING SETUP
44

55
This document and the OpenEJB TCK setup can be cloned from Git:
66

77
git clone https://github.com/apache/tomee-tck.git
88

99
In order to run the TCK, you will need both the TCK binary itself, and the Eclipse Glassfish RI.
1010

11-
At present, we are building the TCK binary from source, following these steps:
11+
=== Use setup-tck9.sh
1212

13-
wget https://download.eclipse.org/jakartaee/platform/8/jakarta-jakartaeetck-8.0.2.zip
14-
unzip jakarta-jakartaeetck-8.0.2.zip
15-
rm jakarta-jakartaeetck-8.0.2.zip
13+
Ensure, that you have a `profile` in your maven settings.xml like
14+
15+
<settings>
16+
<profiles>
17+
<profile>
18+
<id>jakarta-tck-environment</id>
19+
<activation>
20+
<activeByDefault>true</activeByDefault>
21+
</activation>
22+
<properties>
23+
<jakartaee91.cts.home>/opt/dev/tcks/jakartaee91-tck</jakartaee91.cts.home>
24+
<jakartaee91.ri.home>/opt/dev/tcks/glassfish6/glassfish</jakartaee91.ri.home>
25+
</properties>
26+
</profile>
27+
</profiles>
28+
</settings>
29+
30+
You can copy & paste from `settings.xml.template`. Ensure, that the directories exist. Then just run `./setup-tck91.sh`.
31+
It will conduct the initial TCK setup.
32+
33+
=== Semi Automated Way of Building the TCK from Source
34+
35+
This is interesting, if you need to modify TCK source. To build from source, following these steps:
36+
37+
wget https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee9-eftl/promoted/jakarta-jakartaeetck-9.1.0.zip
38+
unzip jakarta-jakartaeetck-9.1.0.zip
39+
rm jakarta-jakartaeetck-9.1.0.zip
1640
cd jakartaeetck
1741
export WORKSPACE=$(pwd)
18-
export GF_BUNDLE_URL=https://www.eclipse.org/downloads/download.php?file=/glassfish/glassfish-5.1.0.zip
42+
export GF_BUNDLE_URL=https://download.eclipse.org/ee4j/glassfish/glassfish-6.2.5.zip
1943
export GF_HOME=$WORKSPACE
2044
export ANT_HOME=/home/jgallimore/Apps/apache-ant-1.10.5
21-
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
45+
export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64/
2246
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin/:$PATH
2347
$WORKSPACE/docker/build_jakartaeetck.sh
2448

@@ -42,26 +66,26 @@ Once unpacked, they can be "hooked" up via your maven settings.xml file like so:
4266
<settings>
4367
<profiles>
4468
<profile>
45-
<id>javaee-tck-environment</id>
69+
<id>jakarta-tck-environment</id>
4670
<activation>
4771
<activeByDefault>true</activeByDefault>
4872
</activation>
4973
<properties>
50-
<javaee8.cts.home>/Users/jgallimore/dev/ee8tck/javaeetck</javaee8.cts.home>
51-
<javaee8.ri.home>/Users/jgallimore/dev/ee8tck/glassfish5/glassfish</javaee8.ri.home>
74+
<jakartaee91.cts.home>/opt/dev/tcks/jakartaee91-tck</jakartaee91.cts.home>
75+
<jakartaee91.ri.home>/opt/dev/tcks/glassfish6/glassfish</jakartaee91.ri.home>
5276
</properties>
5377
</profile>
5478
</profiles>
5579
</settings>
5680

5781

58-
## TEST RUN
82+
== TEST RUN
5983

60-
To complete a test run against the latest TomEE 8.0.0-SNAPSHOT, from the tomee-tck folder, run
84+
To complete a test run against the latest TomEE 9.0.0-M8-SNAPSHOT, from the tomee-tck folder, run
6185

6286
./runtests --web tomee-plume com.sun.ts.tests.ejb30.bb.localaccess.statelessclient
6387

64-
A successful execution should show and output similiar to:
88+
A successful execution should show and output similar to:
6589

6690
===============================================================================
6791
1/-0/?0 - com/sun/ts/tests/ejb30/bb/localaccess/statelessclient/Client#java#exceptionTest1 - PASSED
@@ -88,7 +112,7 @@ A successful execution should show and output similiar to:
88112
===============================================================================
89113

90114

91-
## MISC
115+
== MISC
92116

93117
The target directory is not cleaned out at the beginning of a test
94118
run. There are a few thousand tests and sometimes multiple
@@ -101,7 +125,7 @@ On occasion some bad state will get into the server install in the
101125
target/ directory. If you start getting weird maven or groovy
102126
errors, clean out the target dir and try again.
103127

104-
## TAB COMPLETION
128+
== TAB COMPLETION
105129

106130
There is a nice little script in the root directory called
107131
runtests.completer which, when sourced, can give be a great
@@ -111,7 +135,7 @@ In bash just source the file like so:
111135

112136
source runtests.completer
113137

114-
### ZSH
138+
=== ZSH
115139

116140
If you are using ZSH, you need to execute the follows commands:
117141

@@ -121,7 +145,7 @@ If you are using ZSH, you need to execute the follows commands:
121145

122146
Then you will be able to have the completer working fine for you ZSH as well. :)
123147

124-
## LOGS
148+
== LOGS
125149

126150
The TCK for the most part runs as a client in a separate vm. The
127151
test results are sent to this vm and then logged here:
@@ -136,10 +160,10 @@ that log.
136160

137161
The server logs are in the usual place:
138162

139-
target/apache-tomee-plume-8.0.0-SNAPSHOT/logs
140-
target/apache-tomee-plume-8.0.0-SNAPSHOT/logs
163+
target/apache-tomee-plume-9.0.0-M8-SNAPSHOT/logs
164+
target/apache-tomee-plume-9.0.0-M8-SNAPSHOT/logs
141165

142-
## SELECTING TESTS
166+
== SELECTING TESTS
143167

144168
It is possible to select whole groups of tests or even individual
145169
tests. The following are all valid ways to select which tests you'd
@@ -171,17 +195,17 @@ For the most part, you can copy and paste that test name as-is and use
171195
it to run a test that failed... with one slight adjustment. You need
172196
to delete the "#java" part and then it will work.
173197

174-
### BAD
198+
=== BAD
175199

176200
./runtests --web tomee-plume com/sun/ts/tests/ejb30/lite/stateful/concurrency/accesstimeout/annotated/Client#java#beanClassLevel_from_ejbembed
177201

178-
### GOOD
202+
=== GOOD
179203

180204
./runtests --web tomee-plume com/sun/ts/tests/ejb30/lite/stateful/concurrency/accesstimeout/annotated/Client#beanClassLevel_from_ejbembed
181205

182-
## TEST DEBUG
206+
== TEST DEBUG
183207

184-
The following are the flags the scrip `runtests` accept for debuggin purposes:
208+
The following are the flags the scrip `runtests` accept for debugging purposes:
185209

186210

187211
-d,--debug Enable Server and TCK appclient debug options (5005 and 5003)
@@ -199,15 +223,15 @@ Example:
199223

200224
Depending on the IDE, you will need to attempt twice to connect to the exposed port.
201225

202-
## WHAT TO TEST
226+
== WHAT TO TEST
203227

204228
The test that needs to be tested are the one having the following `keywords`:
205229

206230
javaee_web_profile, ejb_web_profile, jacc_web_profile, jaspic_web_profile, javamail_web_profile, jaxr_web_profile, xa_web_profile, jaxrpc_web_profile, jaxws_web_profile
207231

208232
For more information about TCK structure and tests attributes check the link:about_tck{outfilesuffix}[about_tck] documentation.
209233

210-
## WHAT NEXT
234+
== WHAT NEXT
211235

212236
Getting from zero to passing is a long road. Failures and the
213237
overall progress tends to go in three stages:
@@ -241,7 +265,7 @@ bit like working blind. You don't really know how many steps
241265
backward you might be taking as a result of a change. It can be
242266
done, but it is risky.
243267

244-
## WORKING TOGETHER
268+
== WORKING TOGETHER
245269
Communication:-
246270
-Email:Make use of dev@tomee.apache.org
247271

pom.xml

+1-4
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,14 @@
3939

4040
<openejb.groupId>org.apache.tomee</openejb.groupId>
4141

42-
<!-- A bit tricky because of the nature we create the 9.x version. Even if the zip is
43-
upgraded to 9.x, lib jars are still in the same old package and still using the base version
44-
For example, for 9.0.0-M2, we are using 8.0.4 as a base line, so it must be aligned -->
4542
<openejb.inzip.version>9.0.0-M8-SNAPSHOT</openejb.inzip.version>
4643
<tomee.inzip.version>9.0.0-M8-SNAPSHOT</tomee.inzip.version>
4744
<tomee.zip.groupId>org.apache.tomee</tomee.zip.groupId>
4845
<tomee.zip.version>9.0.0-M8-SNAPSHOT</tomee.zip.version>
4946

5047
<tomcat.version>10.0.20</tomcat.version>
5148

52-
<johnzon.version>1.2.15</johnzon.version>
49+
<johnzon.version>1.2.16</johnzon.version>
5350
<derby.version>10.14.2.0</derby.version>
5451

5552
<!--

settings.xml.template

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<profiles>
5+
<profile>
6+
<id>jakarta-tck-environment</id>
7+
<activation>
8+
<activeByDefault>true</activeByDefault>
9+
</activation>
10+
<properties>
11+
<jakartaee91.cts.home>/opt/dev/tcks/jakartaee91-tck</jakartaee91.cts.home>
12+
<jakartaee91.ri.home>/opt/dev/tcks/glassfish6/glassfish</jakartaee91.ri.home>
13+
</properties>
14+
</profile>
15+
</profiles>
16+
</settings>

update91tck.sh renamed to setup-tck91.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ grep -q -m 1 jakartaee91.ri.home ~/.m2/settings.xml || {
2222
}
2323

2424
## Download the jakarta-jakartaeetckinfo.txt from Eclipse and get basic meta data
25-
TCKINFO="$(curl -s https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee9-eftl/staged-910/jakarta-jakartaeetckinfo.txt)"
25+
TCKINFO="$(curl -s https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee9-eftl/promoted/jakarta-jakartaee-tckinfo.txt)"
2626
DATESTAMP="$(echo "$TCKINFO" | grep 'date:' | perl -pe 's,.*date: (\d\d\d\d-\d\d-\d\d) (\d\d):(\d\d).*,$1.$2$3,')"
2727
URL="$(echo "$TCKINFO" | grep 'download.eclipse.org' | perl -pe 's,.*(://download.eclipse.org/[^ ]+\.zip).*,https$1,')"
2828
SHA="$(echo "$TCKINFO" | grep 'SHA256SUM' | perl -pe 's,.*SHA256SUM: ([0-9a-f]+).*,$1,')"
@@ -38,7 +38,7 @@ RIDIR="$(dirname "$OLDRI")"
3838

3939
TCK="$NAME-$DATESTAMP"
4040

41-
RI="glassfish-6.0.0"
41+
RI="glassfish-6.2.5"
4242
RIURL="https://download.eclipse.org/ee4j/glassfish/$RI.zip"
4343

4444
echo "Latest TCK

0 commit comments

Comments
 (0)