From 9499741c0eca01f47ee49493e5c77187464edbf6 Mon Sep 17 00:00:00 2001 From: Vladimir Stoiakin Date: Sat, 6 Jan 2024 16:59:56 +0300 Subject: [PATCH] TEST-24-CRYPTSETUP: depend on OpenSSL for testing PKCS#11 tokens --- test/TEST-24-CRYPTSETUP/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/TEST-24-CRYPTSETUP/test.sh b/test/TEST-24-CRYPTSETUP/test.sh index a6739eee1c..a9c3e05d00 100755 --- a/test/TEST-24-CRYPTSETUP/test.sh +++ b/test/TEST-24-CRYPTSETUP/test.sh @@ -56,6 +56,10 @@ can_test_pkcs11() { ddebug "Support for p11-kit is disabled, skipping the PKCS#11 test" return 1 fi + if ! "${SYSTEMCTL:?}" --version | grep -q "+OPENSSL"; then + ddebug "Support for openssl is disabled, skipping the PKCS#11 test" + return 1 + fi if ! "${SYSTEMCTL:?}" --version | grep -q "+LIBCRYPTSETUP\b"; then ddebug "Support for libcryptsetup is disabled, skipping the PKCS#11 test" return 1