# # 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=${web.home}/modules/cdi-api.jar:${web.home}/modules/jakarta.ejb-api.jar:${web.home}/modules/jakarta.inject.jar:${web.home}/modules/jakarta.json.jar:${web.home}/modules/jakarta.json-api.jar:${web.home}/modules/jakarta.json.bind-api.jar:${web.home}/modules/jakarta.persistence.jar:${web.home}/modules/jakarta.servlet-api.jar:${web.home}/modules/jakarta.transaction-api.jar:${web.home}/modules/osgi-resource-locator.jar:${web.home}/modules/weld-osgi-bundle.jar:${web.home}/modules/jakarta.enterprise.concurrent-api.jar:${web.home}/modules/yasson.jar ####################################################################################### # 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=${ts.home}/../JTwork report.dir=${ts.home}/../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=true 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 impl.vi=glassfish web.home=${ts.home}/../glassfish6/glassfish