1
- # TomEE-TCK
1
+ = TomEE-TCK
2
2
3
- ## GETTING SETUP
3
+ == GETTING SETUP
4
4
5
5
This document and the OpenEJB TCK setup can be cloned from Git:
6
6
7
7
git clone https://github.com/apache/tomee-tck.git
8
8
9
9
In order to run the TCK, you will need both the TCK binary itself, and the Eclipse Glassfish RI.
10
10
11
- At present, we are building the TCK binary from source, following these steps:
11
+ === Use setup-tck9.sh
12
12
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
16
40
cd jakartaeetck
17
41
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
19
43
export GF_HOME=$WORKSPACE
20
44
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/
22
46
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin/:$PATH
23
47
$WORKSPACE/docker/build_jakartaeetck.sh
24
48
@@ -42,26 +66,26 @@ Once unpacked, they can be "hooked" up via your maven settings.xml file like so:
42
66
<settings>
43
67
<profiles>
44
68
<profile>
45
- <id>javaee -tck-environment</id>
69
+ <id>jakarta -tck-environment</id>
46
70
<activation>
47
71
<activeByDefault>true</activeByDefault>
48
72
</activation>
49
73
<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>
52
76
</properties>
53
77
</profile>
54
78
</profiles>
55
79
</settings>
56
80
57
81
58
- ## TEST RUN
82
+ == TEST RUN
59
83
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
61
85
62
86
./runtests --web tomee-plume com.sun.ts.tests.ejb30.bb.localaccess.statelessclient
63
87
64
- A successful execution should show and output similiar to:
88
+ A successful execution should show and output similar to:
65
89
66
90
===============================================================================
67
91
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:
88
112
===============================================================================
89
113
90
114
91
- ## MISC
115
+ == MISC
92
116
93
117
The target directory is not cleaned out at the beginning of a test
94
118
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
101
125
target/ directory. If you start getting weird maven or groovy
102
126
errors, clean out the target dir and try again.
103
127
104
- ## TAB COMPLETION
128
+ == TAB COMPLETION
105
129
106
130
There is a nice little script in the root directory called
107
131
runtests.completer which, when sourced, can give be a great
@@ -111,7 +135,7 @@ In bash just source the file like so:
111
135
112
136
source runtests.completer
113
137
114
- ### ZSH
138
+ === ZSH
115
139
116
140
If you are using ZSH, you need to execute the follows commands:
117
141
@@ -121,7 +145,7 @@ If you are using ZSH, you need to execute the follows commands:
121
145
122
146
Then you will be able to have the completer working fine for you ZSH as well. :)
123
147
124
- ## LOGS
148
+ == LOGS
125
149
126
150
The TCK for the most part runs as a client in a separate vm. The
127
151
test results are sent to this vm and then logged here:
@@ -136,10 +160,10 @@ that log.
136
160
137
161
The server logs are in the usual place:
138
162
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
141
165
142
- ## SELECTING TESTS
166
+ == SELECTING TESTS
143
167
144
168
It is possible to select whole groups of tests or even individual
145
169
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
171
195
it to run a test that failed... with one slight adjustment. You need
172
196
to delete the "#java" part and then it will work.
173
197
174
- ### BAD
198
+ === BAD
175
199
176
200
./runtests --web tomee-plume com/sun/ts/tests/ejb30/lite/stateful/concurrency/accesstimeout/annotated/Client#java#beanClassLevel_from_ejbembed
177
201
178
- ### GOOD
202
+ === GOOD
179
203
180
204
./runtests --web tomee-plume com/sun/ts/tests/ejb30/lite/stateful/concurrency/accesstimeout/annotated/Client#beanClassLevel_from_ejbembed
181
205
182
- ## TEST DEBUG
206
+ == TEST DEBUG
183
207
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:
185
209
186
210
187
211
-d,--debug Enable Server and TCK appclient debug options (5005 and 5003)
@@ -199,15 +223,15 @@ Example:
199
223
200
224
Depending on the IDE, you will need to attempt twice to connect to the exposed port.
201
225
202
- ## WHAT TO TEST
226
+ == WHAT TO TEST
203
227
204
228
The test that needs to be tested are the one having the following `keywords`:
205
229
206
230
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
207
231
208
232
For more information about TCK structure and tests attributes check the link:about_tck{outfilesuffix}[about_tck] documentation.
209
233
210
- ## WHAT NEXT
234
+ == WHAT NEXT
211
235
212
236
Getting from zero to passing is a long road. Failures and the
213
237
overall progress tends to go in three stages:
@@ -241,7 +265,7 @@ bit like working blind. You don't really know how many steps
241
265
backward you might be taking as a result of a change. It can be
242
266
done, but it is risky.
243
267
244
- ## WORKING TOGETHER
268
+ == WORKING TOGETHER
245
269
Communication:-
246
270
-Email:Make use of dev@tomee.apache.org
247
271
0 commit comments