releng: Add a Maven profile to run a custom test suite in alltests
[deliverable/tracecompass.git] / releng / org.eclipse.tracecompass.alltests / pom.xml
index ba354a54d091f44d9bd1307ca7b3933d65b4f7c8..60d745019890d99073b5d4528e16e6e4be4c4c5c 100644 (file)
   </build>
 
   <profiles>
+    <!-- Profile to run a test suite present in this plugin, defined by
+         putting -DcustomTestSuite=<name> on the command line. -->
+    <profile>
+      <id>run-custom-test-suite</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.eclipse.tycho</groupId>
+            <artifactId>tycho-surefire-plugin</artifactId>
+            <version>${tycho-version}</version>
+            <configuration>
+              <includes>
+                <include>**/${customTestSuite}.java</include>
+              </includes>
+              <useUIHarness>true</useUIHarness>
+              <useUIThread>false</useUIThread>
+              <argLine>${tycho.testArgLine} ${base.ui.test.vmargs}</argLine>
+              <product>org.eclipse.platform.ide</product>
+              <environmentVariables>
+                <SWT_GTK3>${SWT_GTK3}</SWT_GTK3>
+              </environmentVariables>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
     <!-- Profile to run the performance tests -->
     <profile>
       <id>performance</id>
This page took 0.026065 seconds and 5 git commands to generate.