|
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 <property name="org.eclipse.test.plugin.name" value="org.eclipse.test_3.1.0"/> |
|
8 |
|
9 <property name="vmargs" value="-Xmx1g -XX:MaxPermSize=96M"/> |
|
10 <!-- sets the properties eclipse-home, and library-file --> |
|
11 <property name="library-file" |
|
12 value="${eclipse-home}/plugins/${org.eclipse.test.plugin.name}/library.xml"/> |
|
13 |
|
14 <!-- This target holds all initialization code that is needed 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="com.nokia.sdt*.xml"/> |
|
21 </delete> |
|
22 </target> |
|
23 |
|
24 <!-- This target defines the tests that need to be run. --> |
|
25 <target name="suite"> |
|
26 <property name="session-folder" |
|
27 value="${eclipse-home}/ui_session_folder"/> |
|
28 <delete dir="${session-folder}" quiet="true"/> |
|
29 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
|
30 <property name="data-dir" value="${session-folder}"/> |
|
31 <property name="plugin-name" value="com.nokia.sdt.uidesigner.autotest"/> |
|
32 <property name="classname" |
|
33 value="com.nokia.sdt.uidesigner.autotest.FullTestSuite"/> |
|
34 </ant> |
|
35 </target> |
|
36 |
|
37 <!-- This target holds code to cleanup the testing environment after --> |
|
38 <!-- after all of the tests have been run. You can use this target to --> |
|
39 <!-- delete temporary files that have been created. --> |
|
40 <target name="cleanup"> |
|
41 </target> |
|
42 |
|
43 <!-- This target runs the test suite. Any actions that need to happen --> |
|
44 <!-- after all the tests have been run should go here. --> |
|
45 <target name="run" depends="init,suite,cleanup"> |
|
46 <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
|
47 <property name="includes" value="com.nokia.sdt*.xml"/> |
|
48 <property name="output-file" value="uidesigner.autotest.xml"/> |
|
49 </ant> |
|
50 </target> |
|
51 |
|
52 </project> |
|
53 |