Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 747267f456c46fbf3ecd7df8b692d676477ed276 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<?xml version="1.0" encoding="UTF-8"?>
<project
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.eclipse.tcf</groupId>
    <artifactId>org.eclipse.tcf.maven-build</artifactId>
    <version>1.7.0-SNAPSHOT</version>
    <relativePath>../../../admin/pom-build.xml</relativePath>
  </parent>

    <version>1.7.0-SNAPSHOT</version>
    <artifactId>org.eclipse.tcf.te.tests</artifactId>
    <packaging>eclipse-test-plugin</packaging>

    <properties>
        <jacoco.append>true</jacoco.append>

        <ui.test.vmargs>-Xint -Xmx512m -XX:MaxPermSize=256m</ui.test.vmargs>
    </properties>

    <profiles>
        <profile>
            <id>tests</id>

            <build>
                <plugins>
                    <plugin>
                        <groupId>org.eclipse.tycho</groupId>
                        <artifactId>tycho-surefire-plugin</artifactId>
                        <version>${tycho-version}</version>
                        <configuration>
                            <useUIHarness>true</useUIHarness>
                            <useUIThread>true</useUIThread>
                            <product>org.eclipse.platform.ide</product>
                            <argLine>${tycho.testArgLine} ${ui.test.vmargs}</argLine>
                            <application>org.eclipse.ui.ide.workbench</application>
                            <testFailureIgnore>true</testFailureIgnore>
                            <showEclipseLog>true</showEclipseLog>
                            <testRuntime>p2Installed</testRuntime>
                            <!--
                            <debugPort>8003</debugPort>
                            -->

                            <systemProperties>
                                <osgi.debug>${basedir}/tracing/.options</osgi.debug>
                                <tcf.agent.path>${WORKSPACE}/.agent</tcf.agent.path>
                            </systemProperties>

                            <testSuite>org.eclipse.tcf.te.tests</testSuite>
                            <testClass>org.eclipse.tcf.te.tests.suites.AllTests</testClass>
                        </configuration>
                    </plugin>

                    <plugin>
                        <groupId>org.codehaus.gmaven</groupId>
                        <artifactId>gmaven-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <source>
                                    project.properties['qualified.bundle.version'] = project.properties['unqualifiedVersion'].replace('qualifier', project.properties['buildQualifier'])
                                    </source>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>generate-report</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <typedef resource="org/jacoco/ant/antlib.xml"/>
                                        <echo message="Coverage report"/>
                                        <report>
                                            <executiondata>
                                                <fileset dir="${project.build.directory}" includes="jacoco.exec"/>
                                            </executiondata>
                                            <structure name="Code Coverage - Target Explorer">
                                                <group name="org.eclipse.tcf.te.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.core.cdt">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.core.cdt/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.core.cdt/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.launch.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.launch.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.launch.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime.concurrent">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.concurrent/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.concurrent/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime.model">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.model/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.model/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime.persistence">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.persistence/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.persistence/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime.services">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.services/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.services/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime.statushandler">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.statushandler/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.statushandler/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.runtime.stepper">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.stepper/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.runtime.stepper/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.core.model">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.core.model/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.core.model/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.filesystem.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.filesystem.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.filesystem.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.launch.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.launch.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.launch.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.locator">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.locator/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.locator/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.log.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.log.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.log.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.processes.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.processes.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.processes.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.services.contexts">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.services.contexts/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.services.contexts/src"/>
                                                    </sourcefiles>
                                                </group>

                                                <group name="org.eclipse.tcf.te.tcf.terminals.core">
                                                    <classfiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.terminals.core/target/classes"/>
                                                    </classfiles>
                                                    <sourcefiles>
                                                        <fileset dir="${basedir}/../org.eclipse.tcf.te.tcf.terminals.core/src"/>
                                                    </sourcefiles>
                                                </group>

                                            </structure>

                                            <html destdir="${project.build.directory}/coverage"
                                                  footer="Code Coverage Report for Target Explorer ${qualified.bundle.version}"
                                                  locale="de"/>
                                            <csv destfile="${project.build.directory}/coverage/coverage.csv"/>
                                            <xml destfile="${project.build.directory}/coverage/coverage.xml"/>
                                        </report>
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>org.jacoco</groupId>
                                <artifactId>org.jacoco.ant</artifactId>
                                <version>${jacoco-version}</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

Back to the top