/
ts.jte
298 lines (271 loc) · 14.7 KB
/
ts.jte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
#
# Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the
# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
# version 2 with the GNU Classpath Exception, which is available at
# https://www.gnu.org/software/classpath/license.html.
#
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
#
#########################################################################
# #
# JavaTest Environment file for CONCURRENCY Compatibility Test Suite #
# #
# Environment specific properties in this file will likely #
# have to be modified prior to running the CONCURRENCY TCK. #
# Instructions for modifying these properties are contained in this #
# file. #
# #
#########################################################################
##############################################################################
# The following properties must be set prior to running the CONCURRENCY
# TCK tests.
#
## These properties must specify the host and port of the web server,
## in which the CONCURRENCY TCK test servlets are deployed.
#
# @webServerHost hostname for the Vendor's Web Server
# @webServerPort port number of the Vendor's Web Server
# @webcontainer.home This property must refer to the location where the Vendor
# Implementation is installed within the webcontainer under
# test, in our case the (GlassFish RI).
##############################################################################
webServerHost=localhost
webServerPort=8080
webcontainer.home=
###########################################################################
# @concurrency.classes should contain all Vendor specific jars/classes
#
# Classes of the Concurrency Reference Implementation needed to run and/or
# build the Concurrency TCK. If testing with the Concurrency Reference
# Implementation which is the (GlassFish RI) then set concurrency.classes
# to the following: concurrency.classes=${glassfish.ri.classes}
###########################################################################
concurrency.classes=
#######################################################################################
# Implementation Property Settings for Vendor
#
# The TCK uses the following implementations:
# - glassfish (JavaEE Web Container)
#
# Here are the common properties that need to be defined for the common
# implementation functionality:
#
# @impl.vi This property must be set to the Vendor implementation
# under test.
# @impl.vi.deploy.dir This property must be set to the deploy directory for
# the Vendor implementation.
# @impl.vi.host This property must be set to the webserver host where
# the Vendor implementation is running.
# @impl.vi.port This property must be set to the webserver port where
# the Vendor implementation is running.
# @impl.deploy.timeout.multiplier This property must be set to the time the Vendor
# Implementation will wait for deployment to succeed
# or fail
#######################################################################################
impl.vi=glassfish
impl.vi.deploy.dir=${webcontainer.home}/domains/domain1/autodeploy
impl.vi.host=${webServerHost}
impl.vi.port=${webServerPort}
impl.deploy.timeout.multiplier=120
####################################################################
# For the webcontainer home properties defined above, if glassfish
# is selected these are the various additional properties that should
# be set for use with configuration setup.
####################################################################
# For glassfish as Vendor set the following:
glassfish.instance.home=${webcontainer.home}/domains/domain1
glassfish.admin.host=localhost
glassfish.admin.port=4848
glassfish.admin.user=admin
glassfish.admin.pass=
glassfish.master.pass=changeit
glassfish.server.instance=server
glassfish.domain.name=domain1
######################################################################
# @glassfish.ri.classes -- Classpath setting for GlassFish RI and
# Concurrency implementation classes.
######################################################################
glassfish.ri.classes=${webcontainer.home}/modules/jakarta.enterprise.concurrent-api.jar${pathsep}${webcontainer.home}/modules/jakarta.servlet-api.jar${pathsep}${webcontainer.home}/modules/jakarta.ejb-api.jar${pathsep}${webcontainer.home}/modules/jta.jar${pathsep}${webcontainer.home}/modules/jakarta.enterprise.deploy-api.jar
####################################################################
# The jars/classes for the TS harness/javatest and the test classes
# @ts.harness.classpath -- Classes required by javatest
# @ts.classpath -- Classes used to build the CONCURRENCY tests
# @ts.run.classpath -- Classpath required by the vendor
# appclient container.
####################################################################
ts.harness.classpath=${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/concurrencytck.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/jaxb-api.jar${pathsep}${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/jaxb-libs.jar${pathsep}${ts.home}/lib/jaxb-impl.jar
ts.classpath=${concurrency.classes}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/concurrencytck.jar
ts.run.classpath=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.home}/lib/concurrencytck.jar${pathsep}${ts.home}/classes${pathsep}${concurrency.classes}
###########################################################################
# @tools.jar should be set to the location of the tools.jar from the installed
# jdk
###########################################################################
tools.jar=${jdk.home}/lib/tools.jar
########################################################################
## Javatest batch mode work directory and report directory, and policy for
## handling existing work and report directories. These properties affects
## runclient and report targets, but not gui target.
## To disable generating test report, unset report.dir, or set it to "none"
## either here or from command line, as in the following command:
## ant runclient -Dreport.dir="none"
##
# @if.existing.work.report.dirs specifies how existing work.dir and
# @report.dir will be handled, and it must be one of the following values:
# overwrite overwrites all content in work.dir and report.dir
# backup moves all content in work.dir and report.dir to
# work.dir_time_day_bak and report.dir_time_day_bak,
# respectively
# append reuses and preserves the existing work.dir and report.dir
# auto lets the build files decide which mode to use
# (overwrite, backup or append). the value is determined
# like this:
# if.existing.work.report.dirs == auto
# if in CONCURRENCY workspace
# if.existing.work.report.dirs = overwrite
# else we are in a distribution bundle
# if.existing.work.report.dirs = append
# end if
# else
# if.existing.work.report.dirs = value in this file
# end if
########################################################################
work.dir=/tmp/JTwork
report.dir=/tmp/JTreport
if.existing.work.report.dirs=auto
###############################################################
## This property must be set to tell the Test harness the
## class names of your porting class implementations. By default
## both property sets below point to Sun RI specific classes.
#
# @porting.ts.url.class.1 VI of com.sun.ts.lib.porting.TSURLInterface
###############################################################
porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL
########################################################################
## These properties are used by the harness. "harness.log.port"
## specifies the port that server components use to send logging
## output back to JavaTest. If the default port # is not available
## on the machine running JavaTest, then you can set it here.
##
# @harness.temp.directory directory location used by the
# harness to store temporary files
#
# @harness.log.port the port the harness listens on for log mesages
# from remote clients
#
# @harness.log.traceflag used to turn on/off verbose debugging output
# for the tests.
#
# @harness.log.delayseconds Number of seconds to delay to allow
# reporting from remote clients to finish.
#
# @harness.executeMode used to run the harness in the following modes
# of execution: 2 - run only
#
# @harness.socket.retry.count - denotes the number of time we should
# attempt to create a server socket when intilizing a test
# client. The socket is used for logging purposes.
########################################################################
harness.temp.directory=${ts.home}/tmp
harness.log.port=2000
harness.log.traceflag=false
harness.log.delayseconds=1
harness.executeMode=2
harness.socket.retry.count=10
###############################################################
# @tz - your local timezone. For valid values, consult your
# Operating System documentation.
###############################################################
tz=US/Eastern
########################################################################
# @javatest.timeout.factor This property specifies the scale factor used by
# Javatest to adjust the time JavaTest will wait for a given test to
# complete before returning failure. For instance if the default test timeout
# is 5 minutes, this value will be multiplied by 5 minutes to determine
# the total timeout delay. Note: this value only works with Javatest's
# batch mode (runclient). When using the Javatest GUI users must change
# this timeout factor in the GUI. Configure -> Edit Configuration -> View
# -> choose Standard Values -> select tab Execution -> set Time Factor.
########################################################################
javatest.timeout.factor=1.0
#######################################################################
#build level
#######################################################################
#1: compile only
#2: compile and build component archives (e.g., jar's, war's)
build.level=2
###############################################################
# @ts.display -- location to display CONCURRENCY output on Unix
###############################################################
ts.display=:0.0
#######################################################################
# default deliverable class
#######################################################################
deliverable.class=com.sun.ts.lib.deliverable.tck.TCKDeliverable
########################################################################
## Common environment for both ts_unix and ts_win32
########################################################################
# This execute line runs against the VI implementation
command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${ts.run.classpath} \
DISPLAY="${ts.display}" \
HOME="${user.home}" \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
${JAVA_HOME}/bin/java \
-Djava.security.policy="${bin.dir}/harness.policy" \
-Djava.security.manager \
-Ddeliverable.class=${deliverable.class} \
-Djava.endorsed.dirs=${endorsed.dirs} \
$testExecuteClass $testExecuteArgs
#########################################################################
## Environment for ts_unix
## The test execution commands inherit from common environment
## defined above: testExecute.
## If you need to override it, uncomment it in the following section.
#########################################################################
env.ts_unix.menu=true
##env.ts_unix.command.testExecute=
########################################################################
## Environment for ts_win32
## The test execution commands inherit from common environment
## defined above: testExecute.
## If you need to override it, uncomment it in the following section.
########################################################################
env.ts_win32.menu=true
##env.ts_win32.command.testExecute=
#########################################################################
# @sigTestClasspath: This property must be set when running signature
# tests. This property should be set to a list of
# jar files and/or directories which contain your
# Java EE and Java SE classes. Paths must be
# separated by the appropriate path separator
# (';' windows, ':' Unixes).
#########################################################################
sigTestClasspath=${concurrency.classes}${pathsep}${JAVA_HOME}/lib/rt.jar
###############################################################
## This command allows the test clients to be run in
## the same JVM as JavaTest in this case. This mode can be
## enabled by passing "-Dsame.jvm=true" to the runclient or gui
## targets. NOTE: This option is only to be used for sanity
## checking and not when running the TCK for compatibility.
###############################################################
command.testExecuteSameJVM=com.sun.ts.lib.harness.ExecuteTSTestSameJVMCmd \
$testExecuteClass $testExecuteArgs
###################################################################
## Deliverables wanting ts.* packaging tasks to add extension list
## attributes to the manifest files must set this property to true.
###################################################################
#create.manifest.extension.entries=false
######################################################################
## Deliverables must set this property to the name of the deliverable
## specific library jar file (iff create.manifest.extension.entries
## is set to true)
######################################################################
tslib.name=concurrencytck