| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <!DOCTYPE project [ | |
| <!-- | |
| Copyright (c) 2017, 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 | |
| --> | |
| <!ENTITY commonSetup SYSTEM "../../config/properties.xml"> | |
| <!ENTITY commonBuild SYSTEM "../../config/common.xml"> | |
| <!ENTITY commonRun SYSTEM "../../config/run.xml"> | |
| <!ENTITY reporting SYSTEM "report.xml"> | |
| <!ENTITY emma SYSTEM "../../config/emma.xml"> | |
| ]> | |
| <project name="ejb" default="usage" basedir="."> | |
| &commonSetup; | |
| &commonBuild; | |
| &commonRun; | |
| &reporting; | |
| &emma; | |
| <patternset id="emma.instrument.jar.files"> | |
| <include name="ejb-full-container.jar"/> | |
| <include name="ejb-container.jar"/> | |
| <include name="ejb-internal-api.jar"/> | |
| <include name="gf-ejb-connector.jar"/> | |
| </patternset> | |
| <target name="all"> | |
| <antcall target="setup"/> | |
| <antcall target="test-all"/> | |
| <antcall target="unsetup"/> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="lite"> | |
| <antcall target="setup"/> | |
| <antcall target="test-lite"/> | |
| <antcall target="unsetup"/> | |
| <antcall target="report-lite"/> | |
| </target> | |
| <target name="ejb_group_1"> | |
| <antcall target="setup"/> | |
| <antcall target="test-group-1"/> | |
| <antcall target="unsetup"/> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejb_group_2"> | |
| <antcall target="setup"/> | |
| <antcall target="test-group-2"/> | |
| <antcall target="unsetup"/> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejb_group_3"> | |
| <antcall target="setup"/> | |
| <antcall target="test-group-3"/> | |
| <antcall target="unsetup"/> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejb_group_embedded"> | |
| <ant dir="ejb32/embedded" target="all"/> | |
| <ant dir="ejb31/embedded" target="all"/> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="setup"> | |
| <antcall target="start-database"/> | |
| <ant target="startDomain"/> | |
| <ant target="clean-result"/> | |
| </target> | |
| <target name="clean-result"> | |
| <delete> | |
| <fileset dir="${env.APS_HOME}" includes="test_results*"/> | |
| </delete> | |
| <delete> | |
| <fileset dir="." includes="*.output"/> | |
| </delete> | |
| <record name="ejb.output" action="start" /> | |
| </target> | |
| <target name="test-lite"> | |
| <ant dir="ejb32" target="lite"/> | |
| <ant dir="ejb31" target="lite"/> | |
| </target> | |
| <target name="test-all"> | |
| <ant dir="stubs" target="all"/> | |
| <ant dir="txprop" target="all"/> | |
| <ant dir="ejbc" target="all"/> | |
| <ant dir="ejb30" target="all"/> | |
| <ant dir="mdb" target="all"/> | |
| <ant dir="cli" target="all"/> | |
| <ant dir="timer" target="all"/> | |
| <ant dir="bmp" target="all"/> | |
| <ant dir="cmp" target="all"/> | |
| <ant dir="sfsb" target="all"/> | |
| <ant dir="allowedmethods" target="all"/> | |
| <ant dir="jms" target="all"/> | |
| <ant dir="ejb32" target="all"/> | |
| <ant dir="ejb31" target="all"/> | |
| <!-- ejb31 must be the last set of tests because embedded test might stop database --> | |
| <ant dir="ejb32/embedded" target="all"/> | |
| <ant dir="ejb31/embedded" target="all"/> | |
| </target> | |
| <target name="test-group-1"> | |
| <ant dir="stubs" target="all"/> | |
| <ant dir="txprop" target="all"/> | |
| <ant dir="ejbc" target="all"/> | |
| <ant dir="ejb30" target="all"/> | |
| </target> | |
| <target name="test-group-2"> | |
| <ant dir="mdb" target="all"/> | |
| <ant dir="cli" target="all"/> | |
| <ant dir="timer" target="all"/> | |
| <ant dir="bmp" target="all"/> | |
| </target> | |
| <target name="test-group-3"> | |
| <ant dir="cmp" target="all"/> | |
| <ant dir="sfsb" target="all"/> | |
| <ant dir="allowedmethods" target="all"/> | |
| <ant dir="jms" target="all"/> | |
| <ant dir="ejb32" target="all"/> | |
| <ant dir="ejb31" target="all"/> | |
| </target> | |
| <target name="unsetup"> | |
| <echo message="Stopping app server instance"/> | |
| <ant target="stopDomain"/> | |
| <antcall target="stop-database"/> | |
| <record name="ejb.output" action="stop" /> | |
| </target> | |
| <target name="orb_integration"> | |
| <ant dir="ejb30" target="clientview"/> | |
| <ant dir="ejb30" target="hello"/> | |
| <ant dir="ejbc" target="all"/> | |
| <ant dir="txprop" target="all"/> | |
| <ant dir="stubs" target="all"/> | |
| <ant dir="bmp" target="txtests"/> | |
| </target> | |
| <target name="start-database" depends="init-common"> | |
| <echo message="Starting database --dbport ${db.port}"/> | |
| <!-- spawn is added to prevent a hang on Windows --> | |
| <exec spawn="true" executable="${ASADMIN}" failonerror="false"> | |
| <arg line="start-database --dbport ${db.port}"/> | |
| </exec> | |
| </target> | |
| <target name="stop-database" depends="init-common"> | |
| <echo message="Stopping database --dbport ${db.port}"/> | |
| <exec executable="${ASADMIN}" failonerror="false"> | |
| <arg line="stop-database --dbport ${db.port}"/> | |
| </exec> | |
| </target> | |
| <target name="report-result" depends="init-common"> | |
| <antcall target="dev-report"/> | |
| </target> | |
| <target name="allowedmethods"> | |
| <record name="allowedmethods.output" action="start" /> | |
| <ant dir="allowedmethods" target="all"/> | |
| <record name="allowedmethods.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="bmp"> | |
| <record name="bmp.output" action="start" /> | |
| <ant dir="bmp" target="all"/> | |
| <record name="bmp.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejb30"> | |
| <record name="ejb30.output" action="start" /> | |
| <ant dir="ejb30" target="all"/> | |
| <record name="ejb30.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejb31"> | |
| <record name="ejb31.output" action="start" /> | |
| <ant dir="ejb31" target="all"/> | |
| <record name="ejb31.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejb32"> | |
| <record name="ejb32.output" action="start" /> | |
| <ant dir="ejb32" target="all"/> | |
| <record name="ejb32.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="ejbc"> | |
| <record name="ejbc.output" action="start" /> | |
| <ant dir="ejbc" target="all"/> | |
| <record name="ejbc.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="jms"> | |
| <record name="jms.output" action="start" /> | |
| <ant dir="jms" target="all"/> | |
| <record name="jms.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="mdb"> | |
| <record name="mdb.output" action="start" /> | |
| <ant dir="mdb" target="all"/> | |
| <record name="mdb.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="stubs"> | |
| <record name="stubs.output" action="start" /> | |
| <ant dir="stubs" target="all"/> | |
| <record name="stubs.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="timer"> | |
| <record name="timer.output" action="start" /> | |
| <ant dir="timer" target="all"/> | |
| <record name="timer.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="cli"> | |
| <record name="cli.output" action="start" /> | |
| <ant dir="cli" target="all"/> | |
| <record name="cli.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="txprop"> | |
| <record name="txprop.output" action="start" /> | |
| <ant dir="txprop" target="all"/> | |
| <record name="txprop.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="sfsb"> | |
| <record name="sfsb.output" action="start" /> | |
| <ant dir="sfsb" target="all"/> | |
| <record name="sfsb.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="stress"> | |
| <record name="stress.output" action="start" /> | |
| <ant dir="stress" target="all"/> | |
| <record name="stress.output" action="stop" /> | |
| <antcall target="report"/> | |
| </target> | |
| <target name="usage"> | |
| <echo> | |
| Usage: | |
| ant all (Executes all the ejb tests) | |
| ant orb_integration (Executes all ejb-related orb integration tests) | |
| ant allowedmethods (Executes the ejb allowedmethods tests) | |
| ant bmp (Executes the ejb bmp tests) | |
| ant ejbc (Executes the ejb ejbc tests) | |
| ant jms (Executes the ejb jms tests) | |
| ant mdb (Executes the ejb mdb tests) | |
| ant stubs (Executes the ejb stubs tests) | |
| ant timer (Executes the ejb timer tests) | |
| ant txprop (Executes the ejb txprop tests) | |
| ant sfsb (Executes the ejb sfsb tests) | |
| ant stress (Executes the ejb stress tests) | |
| ant ejb30 (Executes the ejb30 tests) | |
| ant ejb31 (Executes the ejb31 tests) | |
| </echo> | |
| </target> | |
| </project> |