Skip to content

Commit 3a4f6ff

Browse files
committed
Add Ant test.xml for org.eclipse.core.tests.resources.saveparticipant
This adds a test.xml for Ant-based execution of tests in org.eclipse.core.tests.resources.saveparticipant. It is a follow-up to the addition of these tests to the Maven build.
1 parent 57a3009 commit 3a4f6ff

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

resources/tests/org.eclipse.core.tests.resources.saveparticipant/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ source.. = src/
1616
output.. = bin/
1717
bin.includes = .,\
1818
META-INF/,\
19-
about.html
19+
about.html,\
20+
test.xml
2021
src.includes = about.html
2122

2223
pom.model.packaging = eclipse-test-plugin
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0"?>
2+
<project name="Core Resources Save Participant Automated Tests" default="run" basedir=".">
3+
4+
<!-- The property ${eclipse-home} should be passed into this script -->
5+
<!-- sets the properties eclipse-home, and library-file -->
6+
<property name="eclipse-home" value="${basedir}/../../"/>
7+
<property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
8+
<property name="saveparticipant_location" value="${eclipse-home}/core_resources_saveparticipant_sniff_folder"/>
9+
<property name="plugin-name" value="org.eclipse.core.tests.resources.saveparticipant"/>
10+
11+
<!-- This target holds all initialization code that needs to be done for -->
12+
<!-- all tests that are to be run. Initialization for individual tests -->
13+
<!-- should be done within the body of the suite target. -->
14+
<target name="init">
15+
<tstamp/>
16+
</target>
17+
18+
<!-- This target holds code to cleanup the testing environment after the tests -->
19+
<!-- have been run. You can use this to delete temporary files that are created. -->
20+
<target name="cleanup">
21+
<delete dir="${saveparticipant_location}" quiet="true"/>
22+
</target>
23+
24+
<!-- This target runs the test suite. Any actions that need to happen after all -->
25+
<!-- the tests have been run should go here. -->
26+
<target name="run" depends="init,suite,cleanup">
27+
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
28+
<property name="includes" value="org*.xml"/>
29+
<property name="output-file" value="${plugin-name}.xml"/>
30+
</ant>
31+
</target>
32+
33+
<target name="SaveParticipantTests" depends="init,cleanup">
34+
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
35+
<property name="data-dir" value="${saveparticipant_location}"/>
36+
<property name="plugin-name" value="${plugin-name}"/>
37+
<property name="classname" value="org.eclipse.core.tests.resources.saveparticipant.SaveManagerTest"/>
38+
</ant>
39+
</target>
40+
41+
<!-- This target defines the tests that need to be run. -->
42+
<target name="suite" depends="SaveParticipantTests"/>
43+
44+
</project>

0 commit comments

Comments
 (0)