Skip to content

Commit a916d03

Browse files
committed
Add test.xml to org.eclipse.terminal.test for execution in I-Build
1 parent 49f5918 commit a916d03

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

terminal/tests/org.eclipse.terminal.test/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ bin.includes = META-INF/,\
1616
.,\
1717
plugin.properties,\
1818
plugin.xml,\
19-
about.html
19+
about.html,\
20+
test.xml
2021
src.includes = teamConfig/,\
2122
about.html
2223
pom.model.property.testClass = org.eclipse.terminal.test.AutomatedIntegrationSuite
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0"?>
2+
<project name="Terminal 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="plugin-name" value="org.eclipse.terminal.test"/>
9+
10+
<!-- This target holds all initialization code that needs to be done for -->
11+
<!-- all tests that are to be run. Initialization for individual tests -->
12+
<!-- should be done within the body of the suite target. -->
13+
<target name="init">
14+
<tstamp/>
15+
</target>
16+
17+
<!-- This target holds code to cleanup the testing environment after the tests -->
18+
<!-- have been run. You can use this to delete temporary files that are created. -->
19+
<target name="cleanup">
20+
</target>
21+
22+
<!-- This target runs the test suite. Any actions that need to happen after all -->
23+
<!-- the tests have been run should go here. -->
24+
<target name="run" depends="init,suite,cleanup">
25+
<ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
26+
<property name="includes" value="org*.xml"/>
27+
<property name="output-file" value="${plugin-name}.xml"/>
28+
</ant>
29+
</target>
30+
31+
<!-- This target defines the tests that need to be run. -->
32+
<target name="suite">
33+
<property name="sniff-folder" value="${eclipse-home}/terminal_sniff_folder" />
34+
<delete dir="${sniff-folder}" quiet="true" />
35+
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
36+
<property name="data-dir" value="${sniff-folder}"/>
37+
<property name="plugin-name" value="${plugin-name}"/>
38+
<property name="classname" value="org.eclipse.terminal.test.AutomatedIntegrationSuite"/>
39+
</ant>
40+
</target>
41+
42+
</project>

0 commit comments

Comments
 (0)