blob: 4f12281fbfaa9f148fcfc3bc833bd4fc2b938786 [file] [log] [blame]
<project name="WTP performance testing" default="main">
<!-- Platform property -->
<property name="platform" value="" />
<!-- XML and HTML results -->
<property name="results" value="${perfRoot}/results" />
<!-- Tomcat install directory -->
<property name="tomcat50Dir" value="${perfRoot}/jakarta-tomcat-5.0.28"/>
<!-- jonas install directory -->
<property name="jonas432Dir" value="${perfRoot}/JONAS_4_3_2"/>
<target name="runperftests">
<ant antfile="${wtp.perf}/build.xml" target="setup"/>
<available file="${perfRoot}/eclipse/plugins/${testPlugin}/test.xml" property="test.xml.exists"/>
<antcall target="runtests"/>
</target>
<target name="runtests" if="test.xml.exists">
<ant antfile="${perfRoot}/eclipse/plugins/${testPlugin}/test.xml" dir="${perfRoot}/eclipse">
<property name="library-file" value="${wtp.perf}/performance-tests.xml"/>
</ant>
<mkdir dir="${results}/xml"/>
<copy file="${perfRoot}/eclipse/${report}.xml" tofile="${results}/xml/${report}_${platform}.xml" failonerror="false" />
<antcall target="genHtml" />
</target>
<target name="genHtml">
<style style="${wtp.perf}/../wtp.tests/testScripts/JUNIT.XSL" basedir="${results}/xml" destdir="${results}/html" />
</target>
<!-- wst.server performance tests -->
<target name="wst-server-perfTests" description="Runs the org.eclipse.wst.server.tests.performance test.xml">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.server.tests.performance}" />
<param name="report" value="org.eclipse.wst.server.tests.performance" />
</antcall>
</target>
<!-- Tomcat performance tests -->
<target name="jst-server-tomcat-perfTests" description="Runs the org.eclipse.jst.server.tomcat.tests.performance test.xml">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.jst.server.tomcat.tests.performance}" />
<param name="report" value="org.eclipse.jst.server.tomcat.tests.performance" />
</antcall>
</target>
<!-- JSP performance tests -->
<target name="jst-jsp-perfTests" description="Runs test.xml for
org.eclipse.jst.jsp.ui.tests.performance">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.jst.jsp.ui.tests.performance}" />
<param name="report" value="org.eclipse.jst.jsp.ui.tests.performance" />
</antcall>
</target>
<!-- XML performance tests -->
<target name="wst-xml-perfTests" description="Runs test.xml for
org.eclipse.wst.xml.ui.tests.performance">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.xml.ui.tests.performance}" />
<param name="report" value="org.eclipse.wst.xml.ui.tests.performance" />
</antcall>
</target>
<!-- HTML performance tests -->
<target name="wst-html-perfTests" description="Runs test.xml for
org.eclipse.wst.html.ui.tests.performance">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.html.ui.tests.performance}" />
<param name="report" value="org.eclipse.wst.html.ui.tests.performance" />
</antcall>
</target>
<!-- CSS performance tests -->
<target name="wst-css-perfTests" description="Runs test.xml for
org.eclipse.wst.css.ui.tests.performance">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.css.ui.tests.performance}" />
<param name="report" value="org.eclipse.wst.css.ui.tests.performance" />
</antcall>
</target>
<!-- wst.common performance tests -->
<target name="wst-common-perfTests" description="Runs test.xml for org.eclipse.wst.common.tests.performance">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.common.tests.performance}" />
<param name="report" value="org.eclipse.wst.common.tests.performance" />
</antcall>
</target>
<!-- Web services performance tests -->
<target name="jst-ws-perfTests" description="Runs the org.eclipse.jst.ws.tests.performance test.xml">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.jst.ws.tests.performance}" />
<param name="report" value="org.eclipse.jst.ws.tests.performance" />
</antcall>
</target>
<!-- wsdl performance tests -->
<target name="wst-wsdl-perfTests">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.wsdl.tests.performance}" />
<param name="report" value="org.eclipse.wst.wsdl.tests.performance" />
</antcall>
</target>
<!-- xsd performance tests -->
<target name="wst-xsd-perfTests">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.xsd.tests.performance}" />
<param name="report" value="org.eclipse.wst.xsd.tests.performance" />
</antcall>
</target>
<!-- rdb performance tests -->
<target name="wst-rdb-perfTests">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.wst.rdb.tests.performance}"/>
<param name="report" value="org.eclipse.wst.rdb.tests.performance"/>
</antcall>
</target>
<!-- j2ee performance tests -->
<target name="jst-j2ee-perfTests">
<antcall target="runperftests">
<param name="testPlugin" value="${org.eclipse.jst.j2ee.core.tests.performance}"/>
<param name="report" value="org.eclipse.jst.j2ee.core.tests.performance"/>
</antcall>
</target>
<target name="main">
<antcall target="wst-common-perfTests"/>
<antcall target="wst-wsdl-perfTests"/>
<antcall target="wst-server-perfTests" />
<antcall target="jst-server-tomcat-perfTests" />
<antcall target="jst-jsp-perfTests" />
<antcall target="wst-xml-perfTests" />
<antcall target="wst-html-perfTests" />
<antcall target="wst-css-perfTests" />
<antcall target="jst-ws-perfTests"/>
<antcall target="wst-xsd-perfTests"/>
<antcall target="wst-rdb-perfTests"/>
<antcall target="jst-j2ee-perfTests"/>
</target>
</project>