Added TMF statistics feature (Bug 360572)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / test.xml
1 <?xml version="1.0"?>
2
3 <project name="testsuite" default="run" basedir=".">
4 <property name="classname" value="org.eclipse.linuxtools.tmf.ui.tests" />
5 <property name="plugin-name" value="org.eclipse.linuxtools.tmf.ui.tests" />
6
7 <!-- The property ${eclipse-home} should be passed into this script -->
8 <!-- Set a meaningful default value for when it is not. -->
9 <property name="eclipse-home" value="${basedir}/../../" />
10
11 <property name="library-file" value="${eclipse-home}/dropins/${subProjectName2}/plugins/org.eclipse.test/library.xml" />
12
13 <!-- This target holds all initialization code that needs to be done for -->
14 <!-- all tests that are to be run. Initialization for individual tests -->
15 <!-- should be done within the body of the suite target. -->
16 <target name="init">
17 <tstamp />
18 <delete>
19 <fileset dir="${eclipse-home}" includes="org*.xml" />
20 </delete>
21 </target>
22
23 <!-- This target defines the tests that need to be run. -->
24 <target name="tmf_ui_test_suite">
25 <property name="tmfui-folder" value="${eclipse-home}/tmfui_folder" />
26 <delete dir="${tmfui-folder}" quiet="true" />
27 <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
28 <property name="data-dir" value="${tmfui-folder}" />
29 <property name="plugin-name" value="${plugin-name}" />
30 <property name="classname" value="${classname}" />
31 </ant>
32 </target>
33
34 <!-- This target holds code to cleanup the testing environment after -->
35 <!-- all of the tests have been run. You can use this target to -->
36 <!-- delete temporary files that have been created. -->
37 <target name="cleanup">
38 <mkdir dir="${results}/consolelogs" />
39 <copy failonerror="false" file="${eclipse-home}/results/${classname}.txt" tofile="${results}/consolelogs/${classname}_${platform}.metadata.log.txt" />
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,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 <target name="all" depends="run" description="Dummy target to run all tests">
52 </target>
53
54 </project>
This page took 0.0445410000000001 seconds and 5 git commands to generate.