Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConrad Groth2017-06-17 13:34:04 +0000
committerLeo Ufimtsev2017-06-22 16:02:34 +0000
commit8a0c15acf207b28d8176e0bab62ed119f4eaa273 (patch)
treee2c5ac091265e941acab14ccb278a3b0dbf4b46a /tests/org.eclipse.swt.tests.gtk/pom.xml
parent1de96ce5fd119e54b04409701c4c03aee6792e1f (diff)
downloadeclipse.platform.swt-8a0c15acf207b28d8176e0bab62ed119f4eaa273.tar.gz
eclipse.platform.swt-8a0c15acf207b28d8176e0bab62ed119f4eaa273.tar.xz
eclipse.platform.swt-8a0c15acf207b28d8176e0bab62ed119f4eaa273.zip
Bug 518379 - Allow platform specific JUnit tests
provide infrastructure for platform specific JUnit tests based on maven profiles Patchset 4: - (Leo) Adding AllGtk, All Cocoa, AllWin32 Tests.java - (Leo) Updating pom files. Patchset 5: - (Leo) Commenting out currently unused test setup. Change-Id: I180bc31fc2bca3f8e34f06dfc65ca6b0ac7cd538 Signed-off-by: Conrad Groth <info@conrad-groth.de> Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk/pom.xml')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/pom.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/pom.xml b/tests/org.eclipse.swt.tests.gtk/pom.xml
new file mode 100644
index 0000000000..e6da8340bd
--- /dev/null
+++ b/tests/org.eclipse.swt.tests.gtk/pom.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2017 Conrad Groth and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Distribution License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/org/documents/edl-v10.php
+
+ Contributors:
+ Conrad Groth - initial implementation
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>eclipse.platform.swt.localbuild</artifactId>
+ <groupId>eclipse.platform.swt</groupId>
+ <version>4.8.0-SNAPSHOT</version>
+ <relativePath>../../local-build/local-build-parent/</relativePath>
+ </parent>
+ <groupId>org.eclipse.swt</groupId>
+ <artifactId>org.eclipse.swt.tests.gtk</artifactId>
+ <version>3.106.0-SNAPSHOT</version>
+ <packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <code.ignoredWarnings>${tests.ignoredWarnings}</code.ignoredWarnings>
+ <tycho.testArgLine></tycho.testArgLine>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <configuration>
+ <!-- Make all platform-specific fragments available (and optional) via a feature -->
+ <dependency-resolution>
+ <extraRequirements>
+ <requirement>
+ <type>eclipse-feature</type>
+ <id>org.eclipse.swt.tests.fragments.feature</id>
+ <versionRange>0.0.0</versionRange>
+ </requirement>
+ </extraRequirements>
+ </dependency-resolution>
+ <!-- but only resolve against current environment as we don't want all fragments simultaneously in test -->
+ <environments combine.self="override"/> <!-- we only want platform specific artifacts here -->
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>true</skipTests> <!-- Skip all tests on build servers, because it contains platform specific code -->
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>

Back to the top