blob: 88c262979b00dc5b5f55d2a2d181be940aab9d77 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project [
<!--
Copyright (c) 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">
]>
<project name="cmp" default="usage" basedir=".">
&commonSetup;
&commonBuild;
&commonRun;
&reporting;
<target name="all">
<antcall target="setup"/>
<delete>
<fileset dir="${env.APS_HOME}" includes="test_results*"/>
</delete>
<delete>
<fileset dir="." includes="*.output"/>
</delete>
<record name="cmp.output" action="start" />
<ant dir="blob" target="all"/>
<ant dir="cascadeDelete" target="all"/>
<!-- Need to fix the client to report pass/fail status
<ant dir="collegeapp" target="all"/>
-->
<ant dir="copySemantics" target="all"/>
<ant dir="createExceptionsTest" target="all"/>
<ant dir="ejbflush" target="all"/>
<ant dir="fieldtest" target="all"/>
<ant dir="inheritedpk" target="all"/>
<ant dir="j2eeguide_product" target="all"/>
<ant dir="orderapp" target="all"/>
<ant dir="partSupplier" target="all"/>
<ant dir="robeans" target="all"/>
<ant dir="roster2Teams" target="all"/>
<ant dir="rosterGenDBSchema" target="all"/>
<ant dir="rosterJava2DB" target="all"/>
<ant dir="rosterVC" target="all"/>
<ant dir="rosterext" target="all"/>
<!-- Need to fix the client to report pass/fail status
<ant dir="sampleapp" target="all"/>
-->
<ant dir="unknownpk" target="all"/>
<ant dir="unknownpkVC" target="all"/>
<antcall target="unsetup"/>
</target>
<target name="setup" depends="init-common">
<antcall target="start-database"/>
<ant target="startDomain"/>
</target>
<target name="unsetup" depends="init-common">
<echo message="Stopping app server instance"/>
<ant target="stopDomain"/>
<antcall target="stop-database"/>
<record name="cmp.output" action="stop" />
<antcall target="report"/>
</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="clean-result">
<delete>
<fileset dir="${env.APS_HOME}" includes="test_results*"/>
</delete>
<delete>
<fileset dir="." includes="*.output"/>
</delete>
<record name="cmp.output" action="start" />
</target>
<target name="report-result" depends="init-common">
<antcall target="dev-report"/>
</target>
<target name="blob">
<record name="blob.output" action="start" />
<ant dir="blob" target="all"/>
<record name="blob.output" action="stop" />
<antcall target="report"/>
</target>
<target name="cascadeDelete">
<record name="cascadeDelete.output" action="start" />
<ant dir="cascadeDelete" target="all"/>
<record name="cascadeDelete.output" action="stop" />
<antcall target="report"/>
</target>
<target name="collegeapp">
<record name="collegeapp.output" action="start" />
<ant dir="collegeapp" target="all"/>
<record name="collegeapp.output" action="stop" />
<antcall target="report"/>
</target>
<target name="copySemantics">
<record name="copySemantics.output" action="start" />
<ant dir="copySemantics" target="all"/>
<record name="copySemantics.output" action="stop" />
<antcall target="report"/>
</target>
<target name="createExceptionsTest">
<record name="createExceptionsTest.output" action="start" />
<ant dir="createExceptionsTest" target="all"/>
<record name="createExceptionsTest.output" action="stop" />
<antcall target="report"/>
</target>
<target name="ejbflush">
<record name="ejbflush.output" action="start" />
<ant dir="ejbflush" target="all"/>
<record name="ejbflush.output" action="stop" />
<antcall target="report"/>
</target>
<target name="fieldtest">
<record name="fieldtest.output" action="start" />
<ant dir="fieldtest" target="all"/>
<record name="fieldtest.output" action="stop" />
<antcall target="report"/>
</target>
<target name="inheritedpk">
<record name="inheritedpk.output" action="start" />
<ant dir="inheritedpk" target="all"/>
<record name="inheritedpk.output" action="stop" />
<antcall target="report"/>
</target>
<target name="j2eeguide_product">
<record name="j2eeguide_product.output" action="start" />
<ant dir="j2eeguide_product" target="all"/>
<record name="j2eeguide_product.output" action="stop" />
<antcall target="report"/>
</target>
<target name="orderapp">
<record name="orderapp.output" action="start" />
<ant dir="orderapp" target="all"/>
<record name="orderapp.output" action="stop" />
<antcall target="report"/>
</target>
<target name="partSupplier">
<record name="partSupplier.output" action="start" />
<ant dir="partSupplier" target="all"/>
<record name="partSupplier.output" action="stop" />
<antcall target="report"/>
</target>
<target name="robeans">
<record name="robeans.output" action="start" />
<ant dir="robeans" target="all"/>
<record name="robeans.output" action="stop" />
<antcall target="report"/>
</target>
<target name="roster2Teams">
<record name="roster2Teams.output" action="start" />
<ant dir="roster2Teams" target="all"/>
<record name="roster2Teams.output" action="stop" />
<antcall target="report"/>
</target>
<target name="rosterGenDBSchema">
<record name="rosterGenDBSchema.output" action="start" />
<ant dir="rosterGenDBSchema" target="all"/>
<record name="rosterGenDBSchema.output" action="stop" />
<antcall target="report"/>
</target>
<target name="rosterJava2DB">
<record name="rosterJava2DB.output" action="start" />
<ant dir="rosterJava2DB" target="all"/>
<record name="rosterJava2DB.output" action="stop" />
<antcall target="report"/>
</target>
<target name="rosterVC">
<record name="rosterVC.output" action="start" />
<ant dir="rosterVC" target="all"/>
<record name="rosterVC.output" action="stop" />
<antcall target="report"/>
</target>
<target name="rosterext">
<record name="rosterext.output" action="start" />
<ant dir="rosterext" target="all"/>
<record name="rosterext.output" action="stop" />
<antcall target="report"/>
</target>
<target name="sampleapp">
<record name="sampleapp.output" action="start" />
<ant dir="sampleapp" target="all"/>
<record name="sampleapp.output" action="stop" />
<antcall target="report"/>
</target>
<target name="unknownpk">
<record name="unknownpk.output" action="start" />
<ant dir="unknownpk" target="all"/>
<record name="unknownpk.output" action="stop" />
<antcall target="report"/>
</target>
<target name="unknownpkVC">
<record name="unknownpkVC.output" action="start" />
<ant dir="unknownpkVC" target="all"/>
<record name="unknownpkVC.output" action="stop" />
<antcall target="report"/>
</target>
<target name="usage">
<echo>
Usage:
ant all (Executes all the ejb-ejb30 tests)
</echo>
</target>
</project>