From e43bd70b1b39a549e718b438f36417a89a1892f5 Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Fri, 22 Sep 2017 10:19:56 +0200 Subject: [PATCH] Rework native tests by using profiles and dependencies don't use specific classifiers --- README.md | 4 +-- pom.xml | 48 +++++++++++++++++++++++++++++-- src/main/asciidoc/java/index.adoc | 2 ++ src/main/asciidoc/java/net.adoc | 6 ++-- 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index daaaf1d45..c7b1c1ba9 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,13 @@ Runs the tests Vert.x supports native transport on BSD and Linux, to run the tests with native transport ``` -> mvn test -Dvertx.testNativeTransport=true +> mvn test -PtestNativeTransport ``` Vert.x supports domain sockets on Linux exclusively, to run the tests with domain sockets ``` -> mvn test -Dvertx.testNativeTransport=true -Dtest.useDomainSockets +> mvn test -PtestDomainSockets ``` Vert.x has a few integrations tests that run a differently configured JVM (classpath, system properties, etc....) diff --git a/pom.xml b/pom.xml index e8facb174..126ad8221 100644 --- a/pom.xml +++ b/pom.xml @@ -118,13 +118,11 @@ io.netty netty-transport-native-epoll true - linux-x86_64 io.netty netty-transport-native-kqueue true - osx-x86_64 @@ -680,6 +678,52 @@ + + + testNativeTransport + + true + false + + + + io.netty + netty-transport-native-epoll + true + linux-x86_64 + + + io.netty + netty-transport-native-kqueue + true + osx-x86_64 + + + + + + + testDomainSockets + + true + true + + + + io.netty + netty-transport-native-epoll + true + linux-x86_64 + + + io.netty + netty-transport-native-kqueue + true + osx-x86_64 + + + + docs diff --git a/src/main/asciidoc/java/index.adoc b/src/main/asciidoc/java/index.adoc index 8a69a7eda..a0736107a 100644 --- a/src/main/asciidoc/java/index.adoc +++ b/src/main/asciidoc/java/index.adoc @@ -1705,6 +1705,8 @@ You need to add the following dependency in your classpath: ---- +MacOS Sierra and above are supported. + Native on BSD gives you extra networking options: * SO_REUSEPORT diff --git a/src/main/asciidoc/java/net.adoc b/src/main/asciidoc/java/net.adoc index 65efe6d45..909bd9ccb 100644 --- a/src/main/asciidoc/java/net.adoc +++ b/src/main/asciidoc/java/net.adoc @@ -174,7 +174,7 @@ can be retrieved using `link:../../apidocs/io/vertx/core/net/NetSocket.html#remo Files and classpath resources can be written to the socket directly using `link:../../apidocs/io/vertx/core/net/NetSocket.html#sendFile-java.lang.String-[sendFile]`. This can be a very efficient way to send files, as it can be handled by the OS kernel directly where supported by the operating system. -Please see the chapter about <> for restrictions of the +Please see the chapter about <> for restrictions of the classpath resolution or disabling it. [source,java] @@ -473,7 +473,9 @@ NetServerOptions options = new NetServerOptions(). NetServer server = vertx.createNetServer(options); ---- -Keep in mind that pem configuration, the private key is not crypted. +PKCS8, PKCS1 and X.509 certificates wrapped in a PEM block formats are supported. + +WARNING: keep in mind that pem configuration, the private key is not crypted. ==== Specifying trust for the server