Commit | Line | Data |
---|---|---|
d18dd09b ASL |
1 | <?xml version="1.0"?> |
2 | ||
3 | <project name="testsuite" default="run" basedir="."> | |
38960eca | 4 | <property name="classname" value="org.eclipse.linuxtools.tmf.core.tests" /> |
e1ab8984 FC |
5 | <property name="tmf-event-test-suite-classname" value="org.eclipse.linuxtools.tmf.tests.event.AllTests" /> |
6 | <property name="tmf-request-test-suite-classname" value="org.eclipse.linuxtools.tmf.tests.request.AllTests" /> | |
7 | <property name="tmf-trace-test-suite-classname" value="org.eclipse.linuxtools.tmf.tests.trace.AllTests" /> | |
d18dd09b ASL |
8 | <property name="plugin-name" value="org.eclipse.linuxtools.tmf.tests" /> |
9 | ||
10 | <!-- The property ${eclipse-home} should be passed into this script --> | |
11 | <!-- Set a meaningful default value for when it is not. --> | |
12 | <property name="eclipse-home" value="${basedir}/../../" /> | |
13 | ||
14 | <property name="library-file" value="${eclipse-home}/dropins/${subProjectName2}/plugins/org.eclipse.test/library.xml" /> | |
15 | ||
16 | <!-- This target holds all initialization code that needs to be done for --> | |
17 | <!-- all tests that are to be run. Initialization for individual tests --> | |
18 | <!-- should be done within the body of the suite target. --> | |
19 | <target name="init"> | |
20 | <tstamp /> | |
21 | <delete> | |
22 | <fileset dir="${eclipse-home}" includes="org*.xml" /> | |
23 | </delete> | |
24 | </target> | |
25 | ||
26 | <!-- This target defines the tests that need to be run. --> | |
27 | <target name="tmf_event_test_suite"> | |
28 | <property name="tmf-folder" value="${eclipse-home}/tmf_folder" /> | |
29 | <delete dir="${tmf-folder}" quiet="true" /> | |
30 | <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> | |
31 | <property name="data-dir" value="${tmf-folder}" /> | |
32 | <property name="plugin-name" value="${plugin-name}" /> | |
33 | <property name="classname" value="${tmf-event-test-suite-classname}" /> | |
34 | </ant> | |
35 | </target> | |
36 | ||
e1ab8984 FC |
37 | <target name="tmf_request_test_suite"> |
38 | <property name="tmf-folder" value="${eclipse-home}/tmf_folder" /> | |
39 | <delete dir="${tmf-folder}" quiet="true" /> | |
40 | <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> | |
41 | <property name="data-dir" value="${tmf-folder}" /> | |
42 | <property name="plugin-name" value="${plugin-name}" /> | |
43 | <property name="classname" value="${tmf-request-test-suite-classname}" /> | |
44 | </ant> | |
45 | </target> | |
46 | ||
47 | <target name="tmf_trace_test_suite"> | |
48 | <property name="tmf-folder" value="${eclipse-home}/tmf_folder" /> | |
49 | <delete dir="${tmf-folder}" quiet="true" /> | |
50 | <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> | |
51 | <property name="data-dir" value="${tmf-folder}" /> | |
52 | <property name="plugin-name" value="${plugin-name}" /> | |
53 | <property name="classname" value="${tmf-trace-test-suite-classname}" /> | |
54 | </ant> | |
55 | </target> | |
56 | ||
d18dd09b ASL |
57 | <!-- This target holds code to cleanup the testing environment after --> |
58 | <!-- all of the tests have been run. You can use this target to --> | |
59 | <!-- delete temporary files that have been created. --> | |
60 | <target name="cleanup"> | |
61 | <mkdir dir="${results}/consolelogs" /> | |
62 | <copy failonerror="false" file="${eclipse-home}/results/${classname}.txt" tofile="${results}/consolelogs/${classname}_${platform}.metadata.log.txt" /> | |
63 | </target> | |
64 | ||
65 | <!-- This target runs the test suite. Any actions that need to happen --> | |
66 | <!-- after all the tests have been run should go here. --> | |
e1ab8984 | 67 | <target name="run" depends="init,tmf_event_test_suite,tmf_request_test_suite,tmf_trace_test_suite,cleanup"> |
d18dd09b ASL |
68 | <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> |
69 | <property name="includes" value="org*.xml" /> | |
70 | <property name="output-file" value="${plugin-name}.xml" /> | |
71 | </ant> | |
72 | </target> | |
73 | ||
74 | <target name="all" depends="run" description="Dummy target to run all tests"> | |
75 | </target> | |
76 | ||
77 | </project> |