Lines 1-15
Link Here
|
1 |
<?xml version="1.0"?> |
1 |
<?xml version="1.0"?> |
2 |
|
2 |
|
3 |
<project name="testsuite" default="run" basedir="."> |
3 |
<project name="testsuite" default="run" basedir="."> |
4 |
<!-- This file is intended to be more tightly coupled with the --> |
|
|
5 |
<!-- org.eclipse.ui plugin, for testing. --> |
6 |
|
7 |
<!-- The property ${eclipse-home} should be passed into this script --> |
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}\..\.."/> |
8 |
|
7 |
|
9 |
<!-- sets the properties eclipse-home, and library-file --> |
8 |
<!-- sets the properties eclipse-home, and library-file --> |
10 |
<property name="eclipse-home" value="${basedir}\..\.."/> |
|
|
11 |
<property name="plugin-name" value="org.eclipse.ui.tests"/> |
9 |
<property name="plugin-name" value="org.eclipse.ui.tests"/> |
12 |
<property name="library-file" value="${eclipse-home}/fragments/org.eclipse.test/library.xml"/> |
10 |
<property name="library-file" |
|
|
11 |
value="${eclipse-home}/fragments/org.eclipse.test/library.xml"/> |
13 |
|
12 |
|
14 |
<!-- This target holds all initialization code that needs to be done for --> |
13 |
<!-- This target holds all initialization code that needs to be done for --> |
15 |
<!-- all tests that are to be run. Initialization for individual tests --> |
14 |
<!-- all tests that are to be run. Initialization for individual tests --> |
Lines 23-57
Link Here
|
23 |
|
22 |
|
24 |
<!-- This target defines the tests that need to be run. --> |
23 |
<!-- This target defines the tests that need to be run. --> |
25 |
<target name="suite"> |
24 |
<target name="suite"> |
26 |
<property name="location1" value="${eclipse-home}/ui_session_sniff_folder"/> |
25 |
<property name="session-folder" |
27 |
<delete dir="${location1}" quiet="true"/> |
26 |
value="${eclipse-home}/ui_session_sniff_folder"/> |
|
|
27 |
<delete dir="${session-folder}" quiet="true"/> |
28 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
28 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
29 |
<property name="data-dir" value="${location1}"/> |
29 |
<property name="data-dir" value="${session-folder}"/> |
30 |
<property name="plugin-name" value="${plugin-name}"/> |
30 |
<property name="plugin-name" value="${plugin-name}"/> |
31 |
<property name="classname" value="org.eclipse.ui.tests.api.SessionCreateTest"/> |
31 |
<property name="classname" |
|
|
32 |
value="org.eclipse.ui.tests.api.SessionCreateTest"/> |
32 |
</ant> |
33 |
</ant> |
33 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
34 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
34 |
<property name="data-dir" value="${location1}"/> |
35 |
<property name="data-dir" value="${session-folder}"/> |
35 |
<property name="plugin-name" value="${plugin-name}"/> |
36 |
<property name="plugin-name" value="${plugin-name}"/> |
36 |
<property name="classname" value="org.eclipse.ui.tests.api.SessionRestoreTest"/> |
37 |
<property name="classname" |
|
|
38 |
value="org.eclipse.ui.tests.api.SessionRestoreTest"/> |
37 |
</ant> |
39 |
</ant> |
38 |
|
40 |
|
39 |
<property name="location2" value="${eclipse-home}/ui_sniff_folder"/> |
41 |
<property name="sniff-folder" |
40 |
<delete dir="${location2}" quiet="true"/> |
42 |
value="${eclipse-home}/ui_sniff_folder"/> |
|
|
43 |
<delete dir="${sniff-folder}" quiet="true"/> |
41 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
44 |
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> |
42 |
<property name="data-dir" value="${location2}"/> |
45 |
<property name="data-dir" value="${sniff-folder}"/> |
|
|
46 |
<property name="plugin-name" value="${plugin-name}"/> |
47 |
<property name="classname" |
48 |
value="org.eclipse.ui.tests.UiTestSuite"/> |
49 |
</ant> |
50 |
|
51 |
<property name="jface-sniff-folder" |
52 |
value="${eclipse-home}/jface_sniff_folder"/> |
53 |
<delete dir="${jface-sniff-folder}" quiet="true"/> |
54 |
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> |
55 |
<property name="data-dir" value="${jface-sniff-folder}"/> |
43 |
<property name="plugin-name" value="${plugin-name}"/> |
56 |
<property name="plugin-name" value="${plugin-name}"/> |
44 |
<property name="classname" value="org.eclipse.ui.tests.UiTestSuite"/> |
57 |
<property name="classname" |
|
|
58 |
value="org.eclipse.jface.tests.viewers.AllTests"/> |
45 |
</ant> |
59 |
</ant> |
46 |
</target> |
60 |
</target> |
47 |
|
61 |
|
48 |
<!-- This target holds code to cleanup the testing environment after the tests --> |
62 |
<!-- This target holds code to cleanup the testing environment after --> |
49 |
<!-- have been run. You can use this to delete temporary files that are created. --> |
63 |
<!-- after all of the tests have been run. You can use this target to --> |
|
|
64 |
<!-- delete temporary files that have been created. --> |
50 |
<target name="cleanup"> |
65 |
<target name="cleanup"> |
51 |
</target> |
66 |
</target> |
52 |
|
67 |
|
53 |
<!-- This target runs the test suite. Any actions that need to happen after all --> |
68 |
<!-- This target runs the test suite. Any actions that need to happen --> |
54 |
<!-- the tests have been run should go here. --> |
69 |
<!-- after all the tests have been run should go here. --> |
55 |
<target name="run" depends="init,suite,cleanup"> |
70 |
<target name="run" depends="init,suite,cleanup"> |
56 |
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
71 |
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
57 |
<property name="includes" value="org*.xml"/> |
72 |
<property name="includes" value="org*.xml"/> |