blob: 32e491514c2d2a4a95baf606a6d3f89cc0161a7e [file] [log] [blame]
deboer705c5632004-11-05 14:46:59 +00001<?xml version="1.0"?>
2
3<project name="testsuite" default="performance" basedir=".">
4 <!-- The property ${eclipse-home} should be passed into this script -->
5 <!-- Set a meaningful default value for when it is not. -->
6 <property name="eclipse-home" value="${basedir}\..\.."/>
7
8 <!-- sets the properties eclipse-home, and library-file -->
9 <property name="plugin-name" value="org.eclipse.jst.server.tomcat.tests.performance"/>
dsecilirfa6f2052004-11-17 10:12:22 +000010 <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml"/>
dsecilirde08a632004-11-19 12:47:19 +000011 <property name="perf-tests-file" value="${testDir}/performance-tests.xml"/>
dsecilirfa6f2052004-11-17 10:12:22 +000012 <property name="extraVMargs" value="-Dorg.eclipse.jst.server.tomcat.50=${testDir}/${tomcat50Dir}"/>
deboer705c5632004-11-05 14:46:59 +000013
14 <property name="workspace" value="${eclipse-home}/workspace_servertomcat_performance"/>
15
16 <!-- This target holds all initialization code that needs to be done for -->
17 <!-- all tests that are to be run. Initialization for individual tests -->
18 <!-- should be done within the body of the suite target. -->
19 <target name="init">
20 <tstamp/>
21 <delete>
22 <fileset dir="${eclipse-home}" includes="org.eclipse.jst.server.tomcat.*.xml"/>
23 </delete>
24 </target>
25
26 <!-- This target defines the performance tests that need to be run. -->
27 <target name="performance_suite">
28
29 <delete dir="${workspace}" quiet="true"/>
dsecilirde08a632004-11-19 12:47:19 +000030 <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}">
deboer705c5632004-11-05 14:46:59 +000031 <property name="data-dir" value="${workspace}"/>
32 <property name="plugin-name" value="${plugin-name}"/>
33 <property name="classname" value="org.eclipse.jst.server.tomcat.tests.performance.tomcat50.GetDelegateTestCase"/>
dsecilirfa6f2052004-11-17 10:12:22 +000034 <property name="extraVMargs" value="${extraVMargs}"/>
deboer705c5632004-11-05 14:46:59 +000035 </ant>
dsecilirde08a632004-11-19 12:47:19 +000036 <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}">
deboer705c5632004-11-05 14:46:59 +000037 <property name="data-dir" value="${workspace}"/>
38 <property name="plugin-name" value="${plugin-name}"/>
39 <property name="classname" value="org.eclipse.jst.server.tomcat.tests.performance.tomcat50.OpenEditorTestCase"/>
dsecilirfa6f2052004-11-17 10:12:22 +000040 <property name="extraVMargs" value="${extraVMargs}"/>
deboer705c5632004-11-05 14:46:59 +000041 </ant>
dsecilirde08a632004-11-19 12:47:19 +000042 <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}">
deboer705c5632004-11-05 14:46:59 +000043 <property name="data-dir" value="${workspace}"/>
44 <property name="plugin-name" value="${plugin-name}"/>
45 <property name="classname" value="org.eclipse.jst.server.tomcat.tests.performance.tomcat50.ServerActionsTestCase"/>
dsecilirfa6f2052004-11-17 10:12:22 +000046 <property name="extraVMargs" value="${extraVMargs}"/>
deboer705c5632004-11-05 14:46:59 +000047 </ant>
48
49 </target>
50
51 <!-- This target holds code to cleanup the testing environment after -->
52 <!-- after all of the tests have been run. You can use this target to -->
53 <!-- delete temporary files that have been created. -->
54 <target name="cleanup">
55 <delete dir="${workspace}" quiet="true"/>
56 </target>
57
58 <!-- This target runs the performance test suite. Any actions that need to happen -->
59 <!-- after all the tests have been run should go here. -->
60 <target name="performance" depends="init,performance_suite,cleanup">
61 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
62 <property name="includes" value="org.eclipse.jst.server.tomcat.*.xml"/>
63 <property name="output-file" value="${plugin-name}.xml"/>
64 </ant>
65 </target>
66
67</project>