blob: 2b3b9ef58937fb19ea0e58d13f696ed69d09cc3e [file] [log] [blame]
Stephan Herrmann0c152ef2010-04-01 23:14:43 +00001<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.debug.tests"/>
7
8 <!-- library.xml need these properties-->
9 <property name="eclipse-home" value="${test.eclipseDir}"/>
10 <property name="test.target" value="performance"/>
11
Stephan Herrmannc1a65e92013-04-30 01:57:46 +020012 <fail unless="library-file">Property "library-file" needs to be passed by the caller.</fail>
Stephan Herrmann0c152ef2010-04-01 23:14:43 +000013
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 quiet="true">
20 <fileset dir="${test.eclipseDir}" includes="org.eclipse.objectteams.otdt.debug.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 <property name="otdt-debug-folder"
27 value="${otdt-tests-workspace}/otdt-debug-folder"/>
28 <delete dir="${otdt-debug-folder}" quiet="true"/>
29 <ant target="ui-test" antfile="${library-file}" dir="${test.eclipseDir}">
30 <property name="data-dir" value="${otdt-debug-folder}"/>
31 <property name="plugin-name" value="${plugin-name}"/>
32 <property name="classname"
33 value="org.eclipse.objectteams.otdt.debug.tests.AllTests"/>
34 </ant>
35 </target>
36
37 <target name="checkOS">
38 <condition property="os.isWindows">
39 <os family="windows"/>
40 </condition>
41 </target>
42
43 <!-- This target holds code to cleanup the testing environment after -->
44 <!-- after all of the tests have been run. You can use this target to -->
45 <!-- delete temporary files that have been created. -->
46 <target name="cleanup">
47
48 </target>
49
50 <!-- This target runs the test suite. Any actions that need to happen -->
51 <!-- after all the tests have been run should go here. -->
52 <target name="run" depends="init,suite,cleanup">
53<!--
54 <ant target="collect" antfile="${library-file}" dir="${test.eclipseDir}">
55 <property name="includes" value="org.eclipse.objectteams.otdt.debug.tests.AllTests.xml"/>
56 <property name="output-file" value="${plugin-name}.${file-id}.xml"/>
57 </ant>
58-->
59 </target>
60
61</project>