]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test: skip tlsfuzzer tests pkcs11-provider test
authorOndrej Moris <omoris@redhat.com>
Tue, 4 Mar 2025 05:36:56 +0000 (06:36 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 20 May 2025 19:29:14 +0000 (21:29 +0200)
Tlsfuzzer tests in pkcs11-provider external test currently uses hard-coded
lists of TLS 1.3 signature algorithms expected from openssl. However, openssl
neither promises a fixed default set of the signature algorithms nor promises
a fixed default ordering ofthese algorithms and hence test might fail
eventually even though there is nothing wrong anywhere.

Signed-off-by: Ondrej Moris <omoris@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27602)

test/recipes/95-test_external_pkcs11_provider_data/pkcs11-provider.sh

index 0a0eabb8b338829f3fb992a2fa46e9591a94e9f2..de09b46a0f533920f913f3d24c49a17f5c0fc5db 100755 (executable)
@@ -44,6 +44,7 @@ echo "   OPENSSL_ROOT_DIR:   $OPENSSL_ROOT_DIR"
 echo "   OpenSSL version:    $OPENSSL_VERSION"
 echo "------------------------------------------------------------------"
 
+PKCS11_PROVIDER_SRCDIR=$OPENSSL_ROOT_DIR/pkcs11-provider/
 PKCS11_PROVIDER_BUILDDIR=$OPENSSL_ROOT_DIR/pkcs11-provider/builddir
 
 echo "------------------------------------------------------------------"
@@ -53,6 +54,11 @@ echo "------------------------------------------------------------------"
 PKG_CONFIG_PATH="$BLDTOP" meson setup $PKCS11_PROVIDER_BUILDDIR $OPENSSL_ROOT_DIR/pkcs11-provider/ || exit 1
 meson compile -C $PKCS11_PROVIDER_BUILDDIR pkcs11 || exit 1
 
+# Remove pkcs11-provider tlsfuzzer submodule tlsfuzzer directory to skip tlsfuzzer tests
+if [ -d "${PKCS11_PROVIDER_SRCDIR}/tlsfuzzer/tlsfuzzer" ]; then
+    rm -rf "${PKCS11_PROVIDER_SRCDIR}/tlsfuzzer/tlsfuzzer"
+fi
+
 echo "------------------------------------------------------------------"
 echo "Running tests"
 echo "------------------------------------------------------------------"