From: Vladimir Stoiakin Date: Sat, 6 Jan 2024 13:59:56 +0000 (+0300) Subject: TEST-24-CRYPTSETUP: depend on OpenSSL for testing PKCS#11 tokens X-Git-Tag: v256-rc1~1245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9499741c0eca01f47ee49493e5c77187464edbf6;p=thirdparty%2Fsystemd.git TEST-24-CRYPTSETUP: depend on OpenSSL for testing PKCS#11 tokens --- diff --git a/test/TEST-24-CRYPTSETUP/test.sh b/test/TEST-24-CRYPTSETUP/test.sh index a6739eee1cd..a9c3e05d006 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