Skip to content

Commit

Permalink
[tests] Use Os-specific flags for launching Tycho.
Browse files Browse the repository at this point in the history
When running the unit tests with Tycho on Maven, the Mac operating
system requires specific flags for launching Tycho.
A profile based on the current OS is added.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 30, 2015
1 parent 7014b89 commit 65c6bc2
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/pom.xml
Expand Up @@ -12,6 +12,10 @@
<packaging>pom</packaging>
<name>Tests Parent</name>

<properties>
<tycho-surefire-plugin-os-jvm-flags></tycho-surefire-plugin-os-jvm-flags>
</properties>

<modules>
<module>io.sarl.tests.testdata</module>
<module>io.sarl.tests.api</module>
Expand All @@ -37,6 +41,18 @@
<!-- ==== Plugins Building Management === -->
<!-- ======================================= -->

<profiles>
<profile>
<id>tycho-surefire-plugin-macosx-jvm-flags</id>
<activation>
<os><family>mac</family></os>
</activation>
<properties>
<tycho-surefire-plugin-os-jvm-flags>-XstartOnFirstThread</tycho-surefire-plugin-os-jvm-flags>
</properties>
</profile>
</profiles>

<build>
<!-- The build configurations are inside the submodules for avoiding to
propagate the information outside a specific module -->
Expand All @@ -46,7 +62,7 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<argLine>-ea</argLine>
<argLine>-ea ${tycho-surefire-plugin-os-jvm-flags}</argLine>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 65c6bc2

Please sign in to comment.