Skip to content

Commit

Permalink
Enable/Disable sctp tests based on the detected OS
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed Mar 30, 2012
1 parent f154c48 commit 43db6d7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,5 +335,32 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>unix</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<properties>
<!--
Note: Java SCTP only available for Linux and Solaris
-->
<sctp.test.skip>false</sctp.test.skip>
</properties>
</profile>

<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sctp.test.skip>true</sctp.test.skip>
</properties>
</profile>
</profiles>
</project>

6 changes: 1 addition & 5 deletions transport-sctp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@
<execution>
<id>default-test</id>
<configuration>
<!--
Ignore SCTP Test cases by default
Note: Java SCTP only available for Linux and Solaris
-->
<skipTests>true</skipTests>
<skipTests>${sctp.test.skip}}</skipTests>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 43db6d7

Please sign in to comment.