Fix broken testsuite-shading when using with netty-tcnative-boringssl-static (#8404)
Motivation:
2109f14c24
corrected how we run the testsuite with boringssl-static but missed to also adjust the testsuite-shading configuration which lead to test failures.
Modifications:
Correctly compose the native lib name when no classifier is used.
Result:
Testsuite passes again.
This commit is contained in:
parent
a6f807dd68
commit
3a4a0432d3
@ -27,7 +27,7 @@ services:
|
||||
|
||||
test-boringssl-static:
|
||||
<<: *common
|
||||
command: /bin/bash -cl "./mvnw clean install -Dio.netty.testsuite.badHost=netty.io -Dtcnative.artifactId=netty-tcnative-boringssl-static -Dtcnative.classifier="
|
||||
command: /bin/bash -cl "./mvnw clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true -Dtcnative.artifactId=netty-tcnative-boringssl-static -Dtcnative.classifier="
|
||||
|
||||
shell:
|
||||
<<: *common
|
||||
|
@ -74,7 +74,6 @@
|
||||
</activation>
|
||||
<properties>
|
||||
<nativeTransportLib>netty_transport_native_kqueue_${os.detected.arch}.jnilib</nativeTransportLib>
|
||||
<nativeTcnativeLib>netty_tcnative.jnilib</nativeTcnativeLib>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@ -168,6 +167,10 @@
|
||||
<copy file="${classesShadedNativeDir}/lib${nativeTransportLib}" tofile="${classesShadedNativeDir}/lib${shadingPrefix2}_${nativeTransportLib}" />
|
||||
<delete file="${classesShadedNativeDir}/lib${nativeTransportLib}" />
|
||||
|
||||
<condition property="nativeTcnativeLib" value="netty_tcnative_osx_${os.detected.arch}.jnilib" else="netty_tcnative.jnilib">
|
||||
<equals arg1="${tcnative.classifier}" arg2="" />
|
||||
</condition>
|
||||
|
||||
<copy file="${classesShadedNativeDir}/lib${nativeTcnativeLib}" tofile="${classesShadedNativeDir}/lib${shadingPrefix}_${nativeTcnativeLib}" />
|
||||
<copy file="${classesShadedNativeDir}/lib${nativeTcnativeLib}" tofile="${classesShadedNativeDir}/lib${shadingPrefix2}_${nativeTcnativeLib}" />
|
||||
<delete file="${classesShadedNativeDir}/lib${nativeTcnativeLib}" />
|
||||
@ -209,7 +212,6 @@
|
||||
</activation>
|
||||
<properties>
|
||||
<nativeTransportLib>netty_transport_native_epoll_${os.detected.arch}.so</nativeTransportLib>
|
||||
<nativeTcnativeLib>netty_tcnative.so</nativeTcnativeLib>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@ -303,6 +305,10 @@
|
||||
<copy file="${classesShadedNativeDir}/lib${nativeTransportLib}" tofile="${classesShadedNativeDir}/lib${shadingPrefix2}_${nativeTransportLib}" />
|
||||
<delete file="${classesShadedNativeDir}/lib${nativeTransportLib}" />
|
||||
|
||||
<condition property="nativeTcnativeLib" value="netty_tcnative_linux_${os.detected.arch}.so" else="netty_tcnative.so">
|
||||
<equals arg1="${tcnative.classifier}" arg2="" />
|
||||
</condition>
|
||||
|
||||
<copy file="${classesShadedNativeDir}/lib${nativeTcnativeLib}" tofile="${classesShadedNativeDir}/lib${shadingPrefix}_${nativeTcnativeLib}" />
|
||||
<copy file="${classesShadedNativeDir}/lib${nativeTcnativeLib}" tofile="${classesShadedNativeDir}/lib${shadingPrefix2}_${nativeTcnativeLib}" />
|
||||
<delete file="${classesShadedNativeDir}/lib${nativeTcnativeLib}" />
|
||||
|
Loading…
Reference in New Issue
Block a user