From 88e4817cefb4b4d092e4f6a12f0599c54646db18 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 12 Nov 2018 20:59:44 +0100 Subject: [PATCH] Include correct dependencies for testsuite-shading on windows. (#8491) Motivation: We missed to include a profile for windows which means that we did not have the correct dependencies setup. Modifications: - Add missing profile - Add assumeFalse(...) to ensure we do only test the native transpot shading on non windows platforms. - Explicit specify dependency on netty-common Result: Fixes https://github.com/netty/netty/issues/8489. --- testsuite-shading/pom.xml | 41 +++++++++++++++++++ .../io/netty/testsuite/shading/ShadingIT.java | 7 ++++ 2 files changed, 48 insertions(+) diff --git a/testsuite-shading/pom.xml b/testsuite-shading/pom.xml index 9e53b49513..17a8a94b2a 100644 --- a/testsuite-shading/pom.xml +++ b/testsuite-shading/pom.xml @@ -65,6 +65,35 @@ + + windows + + + windows + + + + + ${project.groupId} + netty-common + ${project.version} + compile + + + ${project.groupId} + netty-handler + ${project.version} + compile + + + ${project.groupId} + ${tcnative.artifactId} + ${tcnative.version} + ${tcnative.classifier} + compile + + + mac @@ -76,6 +105,12 @@ netty_transport_native_kqueue_${os.detected.arch}.jnilib + + ${project.groupId} + netty-common + ${project.version} + compile + ${project.groupId} netty-transport-native-kqueue @@ -214,6 +249,12 @@ netty_transport_native_epoll_${os.detected.arch}.so + + ${project.groupId} + netty-common + ${project.version} + compile + ${project.groupId} netty-transport-native-epoll diff --git a/testsuite-shading/src/test/java/io/netty/testsuite/shading/ShadingIT.java b/testsuite-shading/src/test/java/io/netty/testsuite/shading/ShadingIT.java index 93edde6cdd..51cef5f568 100644 --- a/testsuite-shading/src/test/java/io/netty/testsuite/shading/ShadingIT.java +++ b/testsuite-shading/src/test/java/io/netty/testsuite/shading/ShadingIT.java @@ -17,6 +17,7 @@ package io.netty.testsuite.shading; import io.netty.util.internal.PlatformDependent; import org.junit.Test; +import org.junit.Assume; import java.lang.reflect.Method; @@ -27,6 +28,9 @@ public class ShadingIT { @Test public void testShadingNativeTransport() throws Exception { + // Skip on windows. + Assume.assumeFalse(PlatformDependent.isWindows()); + String className = PlatformDependent.isOsx() ? "io.netty.channel.kqueue.KQueue" : "io.netty.channel.epoll.Epoll"; testShading0(SHADING_PREFIX, className); @@ -35,6 +39,9 @@ public class ShadingIT { @Test public void testShadingTcnative() throws Exception { + // Skip on windows. + Assume.assumeFalse(PlatformDependent.isWindows()); + String className = "io.netty.handler.ssl.OpenSsl"; testShading0(SHADING_PREFIX, className); testShading0(SHADING_PREFIX2, className);