Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions jni/wildfly-openssl.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ DISABLE_testNoExplicitEnabledProtocols="true"
DISABLE_testMultipleEnabledProtocolsWithClientProtocolWithinEnabledRange="true"
DISABLE_testCipherSuiteConverter="true"
DISABLE_testAvailableProtocolsWithTLS13CipherSuites="true"
REMOVE_performTestTwoWayFile="false"

if $JAVA_HOME/bin/java -version 2>&1 | grep fastdebug ; then
REMOVE_performTestTwoWayFile="true"
fi

function addIgnoreImport() {
if ! grep -e "import org.junit.Ignore" "${1}" ; then #do not create duplicated imports
Expand Down Expand Up @@ -87,6 +92,14 @@ pushd wildfly-openssl
else
echo "No test ignored"
fi
if [ $REMOVE_performTestTwoWayFile = "true" ] ; then
boffile=`find | grep java/src/test/.*/BasicOpenSSLEngineTest.java`
addIgnoreImport "${boffile}"
sed "s/@Test/@Ignore @Test/g" -i "${boffile}"
# fixing one double ignore
sed "s/@Ignore public void testNoExplicitEnabledProtocols/public void testNoExplicitEnabledProtocols/g" -i "${boffile}"
cat $boffile | grep -e "@Test" -A1
fi
# it is better to set the libssl and libcrypto on our own
# the wildfly-openssl search is just tragic, and the excception throwns out of it are very missleading
# eg "not found ssl library" may be thrown from findCryptoLibray (where findSSL have passed fine)
Expand Down