Move AutobahnTestsuite to extra module

Motivation:
We should move the AutobahnTestsuite to an extra module. This allows easier to run only the testsuite or only the autobahntestsuite

Modifications:

Create a new module (testsuite-autobahn)

Result:

Better project structure.
This commit is contained in:
Norman Maurer 2017-02-20 14:06:48 +01:00
parent e148b53c67
commit 2a72c87673
7 changed files with 84 additions and 40 deletions

View File

@ -279,6 +279,7 @@
<module>handler-proxy</module> <module>handler-proxy</module>
<module>example</module> <module>example</module>
<module>testsuite</module> <module>testsuite</module>
<module>testsuite-autobahn</module>
<module>testsuite-osgi</module> <module>testsuite-osgi</module>
<module>microbench</module> <module>microbench</module>
<module>all</module> <module>all</module>

View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2017 The Netty Project
~
~ The Netty Project licenses this file to you under the Apache License,
~ version 2.0 (the "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at:
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
~ License for the specific language governing permissions and limitations
~ under the License.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.9.Final-SNAPSHOT</version>
</parent>
<artifactId>netty-testsuite-autobahn</artifactId>
<packaging>jar</packaging>
<name>Netty/Testsuite/Autobahn</name>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netty-codec-http</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>skipTests</id>
<activation>
<property>
<name>skipTests</name>
</property>
</activation>
<properties>
<skipAutobahnTestsuite>true</skipAutobahnTestsuite>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>me.normanmaurer.maven.autobahntestsuite</groupId>
<artifactId>autobahntestsuite-maven-plugin</artifactId>
<version>0.1.4</version>
<configuration>
<mainClass>io.netty.testsuite.autobahn.AutobahnServer</mainClass>
<cases>
<case>*</case>
</cases>
<excludeCases />
<failOnNonStrict>false</failOnNonStrict>
<skip>${skipAutobahnTestsuite}</skip>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>fuzzingclient</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package io.netty.testsuite.websockets.autobahn; package io.netty.testsuite.autobahn;
import io.netty.bootstrap.ServerBootstrap; import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.PooledByteBufAllocator; import io.netty.buffer.PooledByteBufAllocator;

View File

@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package io.netty.testsuite.websockets.autobahn; package io.netty.testsuite.autobahn;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;

View File

@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package io.netty.testsuite.websockets.autobahn; package io.netty.testsuite.autobahn;
import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline; import io.netty.channel.ChannelPipeline;

View File

@ -60,5 +60,5 @@
* *
* <p>10. See the results in <tt>./reports/servers/index.html</tt> * <p>10. See the results in <tt>./reports/servers/index.html</tt>
*/ */
package io.netty.testsuite.websockets.autobahn; package io.netty.testsuite.autobahn;

View File

@ -91,20 +91,6 @@
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras> <argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
</properties> </properties>
<profiles>
<profile>
<id>skipTests</id>
<activation>
<property>
<name>skipTests</name>
</property>
</activation>
<properties>
<skipAutobahnTestsuite>true</skipAutobahnTestsuite>
</properties>
</profile>
</profiles>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -114,28 +100,6 @@
<testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory> <testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>me.normanmaurer.maven.autobahntestsuite</groupId>
<artifactId>autobahntestsuite-maven-plugin</artifactId>
<version>0.1.4</version>
<configuration>
<mainClass>io.netty.testsuite.websockets.autobahn.AutobahnServer</mainClass>
<cases>
<case>*</case>
</cases>
<excludeCases />
<failOnNonStrict>false</failOnNonStrict>
<skip>${skipAutobahnTestsuite}</skip>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>fuzzingclient</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>