releng: Add a Maven profile to run a custom test suite in alltests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 10 Jul 2015 19:45:54 +0000 (15:45 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 18 Aug 2015 18:29:15 +0000 (14:29 -0400)
Change-Id: I8484e5de675ad0b469182e3e2e1aeacdd380170a
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51777
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
README.md
releng/org.eclipse.tracecompass.alltests/pom.xml

index f4b4cba584700def3a35fcda826e8342ecbb389a..660a93b08f0107a0b1ae7fda1d8e9a7a0840c279 100644 (file)
--- a/README.md
+++ b/README.md
@@ -73,6 +73,12 @@ the build system. You can set them by using `-P[profile name]` and
 
   Builds the RCP archives. Refer to the previous section for details.
 
+* `-Prun-custom-test-suite`
+
+  Runs a test suite present in `releng/org.eclipse.tracecompass.alltests`. The
+  test suite to run has to be defined by `-DcustomTestSuite=[name]`, for example
+  `-DcustomTestSuite=RunAllCoreTests`.
+
 * `-Pdeploy-rcp`
 
   Mainly for use on build servers. Copies the generated RCP archives, as well as
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.026027 seconds and 5 git commands to generate.