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