Repository: mina-sshd
Updated Branches:
  refs/heads/master dc5682e6e -> 58569bd10


[SSHD-806] Added MINA I/O factory testing for sshd-git module


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/58569bd1
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/58569bd1
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/58569bd1

Branch: refs/heads/master
Commit: 58569bd10f63b1e76400bb8f29aaa9e72ceaa55c
Parents: 25ba6df
Author: Goldstein Lyor <l...@c-b4.com>
Authored: Tue Apr 17 07:37:07 2018 +0300
Committer: Goldstein Lyor <l...@c-b4.com>
Committed: Tue Apr 17 07:58:21 2018 +0300

----------------------------------------------------------------------
 sshd-git/pom.xml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/58569bd1/sshd-git/pom.xml
----------------------------------------------------------------------
diff --git a/sshd-git/pom.xml b/sshd-git/pom.xml
index f9e16a7..abae18f 100644
--- a/sshd-git/pom.xml
+++ b/sshd-git/pom.xml
@@ -111,6 +111,10 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
+                    
<reportsDirectory>${project.build.directory}/surefire-reports-nio2</reportsDirectory>
+                    <systemProperties>
+                        
<org.apache.sshd.common.io.IoServiceFactory>org.apache.sshd.common.io.nio2.Nio2ServiceFactory</org.apache.sshd.common.io.IoServiceFactory>
+                    </systemProperties>
                 </configuration>
             </plugin>
             <plugin>
@@ -122,4 +126,46 @@
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>test-mina</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.sshd</groupId>
+                    <artifactId>sshd-mina</artifactId>
+                    <version>${project.version}</version>
+                    <scope>test</scope>
+                </dependency>
+            </dependencies>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>mina</id>
+                                <goals>
+                                    <goal>test</goal>
+                                </goals>
+                                <configuration>
+                                    
<redirectTestOutputToFile>true</redirectTestOutputToFile>
+                                    
<reportsDirectory>${project.build.directory}/surefire-reports-mina</reportsDirectory>
+                                    <systemProperties>
+                                        
<org.apache.sshd.common.io.IoServiceFactory>org.apache.sshd.common.io.mina.MinaServiceFactory</org.apache.sshd.common.io.IoServiceFactory>
+                                    </systemProperties>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Reply via email to