blob: 2e6f01ba57ec2dd34283ed9c10fc5b5039f6a6dd [file] [log] [blame]
mkalugin65d0d732007-07-18 14:03:09 +00001<?xml version="1.0"?>
2
3<project name="testsuite" default="run" 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.dltk.validators.core.tests" />
10 <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.2.0/library.xml" />
11
12 <property name="workspace" value="${basedir}/${plugin-name}/workspace" />
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="${eclipse-home}" includes="org*.xml" />
21 </delete>
22 </target>
23
24 <!-- This target defines the tests that need to be run. -->
25 <target name="suite">
26 <delete dir="${workspace}" quiet="true" />
27 <echo message="fourdman: validators core-tests internal test.xml 1" />
28 <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
29 <property name="data-dir" value="${workspace}" />
30 <property name="plugin-name" value="${plugin-name}" />
31 <property name="classname" value="org.eclipse.dltk.validators.core.tests.AllTests" />
32 </ant>
33 </target>
34
35 <!-- This target holds code to cleanup the testing environment after -->
36 <!-- after all of the tests have been run. You can use this target to -->
37 <!-- delete temporary files that have been created. -->
38 <target name="cleanup">
39 <delete dir="${workspace}" quiet="true" />
40 </target>
41
42 <!-- This target runs the test suite. Any actions that need to happen -->
43 <!-- after all the tests have been run should go here. -->
44 <target name="run" depends="init,suite,cleanup">
45 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
46 <property name="includes" value="org*.xml" />
47 <property name="output-file" value="${plugin-name}.xml" />
48 </ant>
49 </target>
50
51</project>
52
53
54