Stephan Herrmann | 36c2699 | 2010-04-01 23:18:59 +0000 | [diff] [blame] | 1 | <project name="testsuite" default="run" basedir="."> |
| 2 | |
| 3 | <property name="otdt-tests-workspace" value="${test.eclipseDir}/otdt-tests-workspace"/> |
| 4 | |
| 5 | <!-- sets the properties eclipseTest-home, and library-file --> |
| 6 | <property name="plugin-name" value="org.eclipse.objectteams.otdt.ui.tests"/> |
| 7 | |
| 8 | <!-- library.xml need these properties--> |
| 9 | <property name="eclipse-home" value="${test.eclipseDir}"/> |
| 10 | <property name="test.target" value="performance"/> |
| 11 | |
| 12 | <property name="library-file" value="${test.eclipseDir}/plugins/${org.eclipse.test}/library.xml"/> |
| 13 | |
| 14 | <!-- This target holds all initialization code that needs to be done for --> |
| 15 | <!-- all tests that are to be run. Initialization for individual tests --> |
| 16 | <!-- should be done within the body of the suite target. --> |
| 17 | <target name="init"> |
| 18 | <tstamp/> |
| 19 | <delete> |
| 20 | <fileset dir="${test.eclipseDir}" includes="org.eclipse.objectteams.otdt.ui.tests.AllTests.xml,${plugin-name}.${file-id}.xml"/> |
| 21 | </delete> |
| 22 | </target> |
| 23 | |
| 24 | <!-- This target defines the tests that need to be run. --> |
| 25 | <target name="suite"> |
| 26 | |
| 27 | <!-- All OTDT UI tests --> |
| 28 | <property name="otdt-ui-folder" |
| 29 | value="${otdt-tests-workspace}/otdt-ui-folder"/> |
| 30 | <delete dir="${otdt-ui-folder}" quiet="true"/> |
| 31 | |
| 32 | <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}"> |
| 33 | <property name="data-dir" value="${otdt-ui-folder}"/> |
| 34 | <property name="plugin-name" value="${plugin-name}"/> |
| 35 | <property name="classname" |
| 36 | value="org.eclipse.objectteams.otdt.ui.tests.AllTests"/> |
| 37 | </ant> |
| 38 | </target> |
| 39 | |
| 40 | |
| 41 | |
| 42 | <target name="checkOS"> |
| 43 | <condition property="os.isWindows"> |
| 44 | <os family="windows"/> |
| 45 | </condition> |
| 46 | </target> |
| 47 | |
| 48 | <!-- This target holds code to cleanup the testing environment after --> |
| 49 | <!-- after all of the tests have been run. You can use this target to --> |
| 50 | <!-- delete temporary files that have been created. --> |
| 51 | <target name="cleanup"> |
| 52 | |
| 53 | </target> |
| 54 | |
| 55 | <!-- This target runs the test suite. Any actions that need to happen --> |
| 56 | <!-- after all the tests have been run should go here. --> |
| 57 | <target name="run" depends="init,suite,cleanup"> |
| 58 | <!-- |
| 59 | <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}"> |
| 60 | <property name="includes" value="org.eclipse.objectteams.otdt.ui.tests.AllTests.xml"/> |
| 61 | <property name="output-file" value="${plugin-name}.${file-id}.xml"/> |
| 62 | </ant> |
| 63 | --> |
| 64 | </target> |
| 65 | |
| 66 | </project> |