ctf: Skip downloading the test traces if maven.test.skip is set
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2011, Red Hat, Inc. and others
4
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9 -->
10
11 <project xmlns="http://maven.apache.org/POM/4.0.0"
12 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
14 <modelVersion>4.0.0</modelVersion>
15
16 <parent>
17 <artifactId>linuxtools-lttng-parent</artifactId>
18 <groupId>org.eclipse.linuxtools.lttng</groupId>
19 <version>3.1.0-SNAPSHOT</version>
20 </parent>
21
22 <name>Linux Tools CTF Core Tests Plug-in</name>
23 <groupId>org.eclipse.linuxtools.ctf</groupId>
24 <artifactId>org.eclipse.linuxtools.ctf.core.tests</artifactId>
25 <version>3.0.0-SNAPSHOT</version>
26 <packaging>eclipse-test-plugin</packaging>
27
28 <!-- Do not download the test traces if "maven.test.skip" is set -->
29 <profiles>
30 <profile>
31 <id>download-traces</id>
32 <activation>
33 <property>
34 <name>!maven.test.skip</name>
35 </property>
36 </activation>
37
38 <build>
39 <plugins>
40 <plugin>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-antrun-plugin</artifactId>
43 <executions>
44 <execution>
45 <id>prepare</id>
46 <phase>pre-integration-test</phase>
47 <configuration>
48 <target>
49 <ant antfile="get-traces.xml" dir="traces" />
50 </target>
51 </configuration>
52 <goals>
53 <goal>run</goal>
54 </goals>
55 </execution>
56 </executions>
57 </plugin>
58 </plugins>
59 </build>
60 </profile>
61 </profiles>
62
63 <build>
64 <plugins>
65 <plugin>
66 <groupId>org.eclipse.tycho</groupId>
67 <artifactId>tycho-surefire-plugin</artifactId>
68 <version>${tycho-version}</version>
69 <configuration>
70 <includes>
71 <include>**/AllCtfCoreTests.*</include>
72 </includes>
73 <useUIHarness>false</useUIHarness>
74 <useUIThread>false</useUIThread>
75 <product>org.eclipse.platform.ide</product>
76 </configuration>
77 </plugin>
78
79 <!-- We don't use the ant file to clean because of http://jira.codehaus.org/browse/MANTRUN-78 -->
80 <plugin>
81 <artifactId>maven-clean-plugin</artifactId>
82 <version>2.5</version>
83 <executions>
84 <execution>
85 <id>clean-traces</id>
86 <phase>clean</phase>
87 <configuration>
88 <filesets>
89 <fileset>
90 <directory>traces</directory>
91 <includes>
92 <include>*.tar*</include>
93 </includes>
94 <excludes>
95 <exclude>*.xml</exclude>
96 <exclude>*.sh</exclude>
97 </excludes>
98 </fileset>
99 <fileset><directory>traces/ctf-testsuite</directory></fileset>
100 <fileset><directory>traces/cyg-profile</directory></fileset>
101 <fileset><directory>traces/django-benchmark</directory></fileset>
102 <fileset><directory>traces/funky_trace</directory></fileset>
103 <fileset><directory>traces/hello-lost</directory></fileset>
104 <fileset><directory>traces/kernel</directory></fileset>
105 <fileset><directory>traces/kernel_vm</directory></fileset>
106 <fileset><directory>traces/synctraces</directory></fileset>
107 <fileset><directory>traces/synthetic-trace</directory></fileset>
108 <fileset><directory>traces/trace2</directory></fileset>
109 <fileset><directory>traces/exp</directory></fileset>
110 </filesets>
111 </configuration>
112 <goals>
113 <goal>clean</goal>
114 </goals>
115 </execution>
116 </executions>
117 </plugin>
118 </plugins>
119 </build>
120
121 </project>
This page took 0.033356 seconds and 5 git commands to generate.