test: reduce the scope of pkcs11-provider external test

To ease maintenance and improve reliability of pkcs11-provider
external test we only want it to run with kryoptic token.

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)
This commit is contained in:
Ondrej Moris 2025-04-16 18:03:35 +02:00 committed by Tomas Mraz
parent 031b4b7c25
commit edd3f47fd7
2 changed files with 3 additions and 3 deletions

View File

@ -132,8 +132,7 @@ Then configure/build OpenSSL enabling external tests:
$ make $ make
pkcs11-provider requires meson for the build process. Moreover, it requires pkcs11-provider requires meson for the build process. Moreover, it requires
softhsm and nss softokn tokens and certtool, certutil, pkcs11-tool and expect kryoptic, opensc and expect to run the tests.
to run the tests.
Tests will then be run as part of the rest of the suite, or can be Tests will then be run as part of the rest of the suite, or can be
explicitly run (with more debugging): explicitly run (with more debugging):

View File

@ -64,7 +64,8 @@ echo "Running tests"
echo "------------------------------------------------------------------" echo "------------------------------------------------------------------"
# The OpenSSL app uses ${HARNESS_OSSL_PREFIX} as a prefix for its standard output # The OpenSSL app uses ${HARNESS_OSSL_PREFIX} as a prefix for its standard output
HARNESS_OSSL_PREFIX= meson test -C $PKCS11_PROVIDER_BUILDDIR # For maintenance reasons and simplicity we only run test with kryoptic token
HARNESS_OSSL_PREFIX= meson test -C $PKCS11_PROVIDER_BUILDDIR --suite=kryoptic
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
cat $PKCS11_PROVIDER_BUILDDIR/meson-logs/testlog.txt cat $PKCS11_PROVIDER_BUILDDIR/meson-logs/testlog.txt