deboer | 705c563 | 2004-11-05 14:46:59 +0000 | [diff] [blame] | 1 | <?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.wst.server.tests.performance"/> |
| 10 | <property name="library-file" |
| 11 | value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml"/> |
dsecilir | de08a63 | 2004-11-19 12:47:19 +0000 | [diff] [blame^] | 12 | <property name="perf-tests-file" value="${testDir}/performance-tests.xml"/> |
deboer | 705c563 | 2004-11-05 14:46:59 +0000 | [diff] [blame] | 13 | |
| 14 | <property name="workspace" value="${eclipse-home}/workspace_server_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.wst.server.tests.performance*.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"/> |
dsecilir | de08a63 | 2004-11-19 12:47:19 +0000 | [diff] [blame^] | 30 | <ant target="core-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> |
deboer | 705c563 | 2004-11-05 14:46:59 +0000 | [diff] [blame] | 31 | <property name="data-dir" value="${workspace}"/> |
| 32 | <property name="plugin-name" value="${plugin-name}"/> |
| 33 | <property name="classname" value="org.eclipse.wst.server.tests.performance.StartupExtensionTestCase"/> |
| 34 | </ant> |
| 35 | |
| 36 | <delete dir="${workspace}" quiet="true"/> |
dsecilir | de08a63 | 2004-11-19 12:47:19 +0000 | [diff] [blame^] | 37 | <ant target="core-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> |
deboer | 705c563 | 2004-11-05 14:46:59 +0000 | [diff] [blame] | 38 | <property name="data-dir" value="${workspace}"/> |
| 39 | <property name="plugin-name" value="${plugin-name}"/> |
| 40 | <property name="classname" value="org.eclipse.wst.server.tests.performance.ModuleFactoriesExtensionTestCase"/> |
| 41 | </ant> |
| 42 | |
| 43 | </target> |
| 44 | |
| 45 | <!-- This target holds code to cleanup the testing environment after --> |
| 46 | <!-- after all of the tests have been run. You can use this target to --> |
| 47 | <!-- delete temporary files that have been created. --> |
| 48 | <target name="cleanup"> |
| 49 | <delete dir="${workspace}" quiet="true"/> |
| 50 | </target> |
| 51 | |
| 52 | <!-- This target runs the performance test suite. Any actions that need to happen --> |
| 53 | <!-- after all the tests have been run should go here. --> |
| 54 | <target name="performance" depends="init,performance_suite,cleanup"> |
| 55 | <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
| 56 | <property name="includes" value="org.eclipse.wst.server.tests.performance*.xml"/> |
| 57 | <property name="output-file" value="${plugin-name}.xml"/> |
| 58 | </ant> |
| 59 | </target> |
| 60 | |
| 61 | </project> |