37
|
1 |
<?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 |
<!-- This is the default name of the org.eclipse.test plugin. -->
|
|
9 |
<!-- We need to be able to override this for the case where the -->
|
|
10 |
<!-- org.eclipse.test plugin was build as part of a feature and -->
|
|
11 |
<!-- will have a name similar to org.eclipse.test_2.1.0 -->
|
|
12 |
<property name="org.eclipse.test" value="org.eclipse.test"/>
|
|
13 |
<!-- sets the properties eclipse-home, and library-file -->
|
|
14 |
<property name="plugin-name" value="org.eclipse.cdt.core.tests"/>
|
|
15 |
<property name="library-file"
|
|
16 |
value="${eclipse-home}/plugins/${org.eclipse.test}/library.xml"/>
|
|
17 |
|
|
18 |
<!-- This target holds all initialization code that needs to be done for -->
|
|
19 |
<!-- all tests that are to be run. Initialization for individual tests -->
|
|
20 |
<!-- should be done within the body of the suite target. -->
|
|
21 |
<target name="init">
|
|
22 |
<tstamp/>
|
|
23 |
<delete>
|
|
24 |
<fileset dir="${eclipse-home}" includes="org*.xml"/>
|
|
25 |
</delete>
|
|
26 |
</target>
|
|
27 |
|
|
28 |
<!-- This target defines the tests that need to be run. -->
|
|
29 |
<target name="suite">
|
|
30 |
<property name="cdt-folder"
|
|
31 |
value="${eclipse-home}/cdt_folder"/>
|
|
32 |
<delete dir="${cdt-folder}" quiet="true"/>
|
|
33 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
|
|
34 |
<property name="data-dir" value="${cdt-folder}"/>
|
|
35 |
<property name="plugin-name" value="${plugin-name}"/>
|
|
36 |
<property name="classname"
|
|
37 |
value="org.eclipse.cdt.core.suite.AutomatedIntegrationSuite"/>
|
|
38 |
</ant>
|
|
39 |
</target>
|
|
40 |
|
|
41 |
<!-- This target holds code to cleanup the testing environment after -->
|
|
42 |
<!-- after all of the tests have been run. You can use this target to -->
|
|
43 |
<!-- delete temporary files that have been created. -->
|
|
44 |
<target name="cleanup">
|
|
45 |
</target>
|
|
46 |
|
|
47 |
<!-- This target runs the test suite. Any actions that need to happen -->
|
|
48 |
<!-- after all the tests have been run should go here. -->
|
|
49 |
<target name="run" depends="init,suite,cleanup">
|
|
50 |
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
|
|
51 |
<property name="includes" value="org*.xml"/>
|
|
52 |
<property name="output-file" value="${plugin-name}.xml"/>
|
|
53 |
</ant>
|
|
54 |
</target>
|
|
55 |
|
|
56 |
</project>
|