Skip to main content

Source code file content

Revision: 57029

GLASSFISH-18987 Remove call to getService in critical path
» Project Revision History

» Checkout URL

svn / trunk / v2 / appserv-tests / build.xml

Size: 4019 bytes, 1 line
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE project [
<!ENTITY commonSetup SYSTEM "file:./config/properties.xml">
<!ENTITY commonBuild SYSTEM "file:./config/common.xml">
<!ENTITY commonEEBuild SYSTEM "file:./config/ee-common.xml">
<!ENTITY reporting SYSTEM "file:./config/report.xml">
<!ENTITY run SYSTEM "file:./config/run.xml">
<!ENTITY mail SYSTEM "file:./config/mail.xml">
]>

<project name="appserv-tests" default="usage" basedir=".">

    &commonSetup;
    &commonBuild;
    &commonEEBuild;
    &reporting;
    &run;
    &mail;

    <target name="all"> 
        <antcall target="sqetests"/>
    </target>

    <target name="all-ee" depends="clean">
    <record name="runtest.output" action="start"/>
        <ant dir="sqetests" target="run-eesqe-target"/>
        <antcall target="report"/>
        <antcall target="mail"/>
    <record name="runtest.output" action="stop"/>
    </target>

    <target name="all-pe" depends="clean">
    <record name="runtest.output" action="start"/>
        <antcall target="startDerby"/>
        <antcall target="startDomain"/>
        <antcall target="sqetests"/>
        <antcall target="stopDerby"/>
        <antcall target="stopDomain"/>
        <antcall target="create-report"/>
        <antcall target="mail"/>
        <antcall target="report-java"/>
    <record name="runtest.output" action="stop"/>
    </target>

    <target name="only-ee" depends="ee-init, ee">
    <record name="appserv-tests.log" action="start"/>
        <antcall target="rename_results"/>
        <record name="runtest.output" action="start"/>
            <echo message="value of ee: ${ee}"/>
            <ant dir="sqetests" target="run-eesqe-target"/>
            <antcall target="stopee"/>
            <antcall target="stopDerby"/>
	    <antcall target="create-report"/>
	    <antcall target="mail"/>
            <antcall target="report-java"/>
        <record name="runtest.output" action="stop"/>
    <record name="appserv-tests.log" action="stop"/>
    </target>

    <!-- clean -->
    <target name="clean">
        <delete failonerror="false">
            <fileset dir="${env.APS_HOME}" excludes="PE_*"
                     includes="count.txt *.output test_results*"/>
        </delete>
    </target>

    <!-- clobber -->
    <target name="clobber-tests" depends="init-common">
        <delete dir="${build.classes.dir}"/>
        <delete failonerror="false">
            <fileset dir="${env.APS_HOME}"
                     includes="*count.txt *.output *test_results*"/>
        </delete>
    </target>

    <!-- ee-init -->
    <target name="ee-init">
        <antcall target="startDerby"/>
        <antcall target="eeunsetup"/>
        <echo message="eeunsetup done..."/>
        <echo message="Spawning eesetup.."/>
        <antcall target="eesetup"/>
        <echo message="eesetup done..."/>
    </target>

<target name="show-list">
    <echo>
         ============ Expected Outputs ==============
         Executing ejb/stateless/converter [Total :1]
         Executing ejb/mdb/simple [Total :1]
         Executing ejb/bmp/enroller [Total :1]
         Executing ejb/cmp/roster [Total :3]
         Executing ejb/ejb30/hello/session [Total :1]
         Executing corba [Total :1]
         Executing connector/cci [Total :1]
         Executing jndi/url  [Total :1]
         Executing transaction/txglobal [Total :1]
         Executing security/integration [Total :1]
         Executing web/subclassing [Total :3]
         ===========================================
        </echo>
        
    </target>

    <target name="sqetests">
        <record name="sqetests.output" action="start" />
            <ant dir="sqetests" target="all"/>
        <record name="sqetests.output" action="stop" />
    </target>

    <target name="setupMQ" depends="setup-mq-common" />

    <target name="usage">
	<echo>
		Usage:
			ant sqetests (Executes all sqetests tests)
			ant all (Executes all sqetests)
            ant show-list (Lists all test suites)
	</echo>
    </target>
</project>
 
 
Close
loading
Please Confirm
Close