3 <project name=
"testsuite" default=
"run" basedir=
".">
4 <property name=
"classname" value=
"org.eclipse.linuxtools.tmf.core.tests" />
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" />
8 <property name=
"plugin-name" value=
"org.eclipse.linuxtools.tmf.tests" />
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}/../../" />
14 <property name=
"library-file" value=
"${eclipse-home}/dropins/${subProjectName2}/plugins/org.eclipse.test/library.xml" />
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. -->
22 <fileset dir=
"${eclipse-home}" includes=
"org*.xml" />
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}" />
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}" />
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}" />
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" />
65 <!-- This target runs the test suite. Any actions that need to happen -->
66 <!-- after all the tests have been run should go here. -->
67 <target name=
"run" depends=
"init,tmf_event_test_suite,tmf_request_test_suite,tmf_trace_test_suite,cleanup">
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" />
74 <target name=
"all" depends=
"run" description=
"Dummy target to run all tests">
This page took 0.032397 seconds and 5 git commands to generate.