]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check for pkcs11-tool in keyfromlabel system test
authorTom Krizek <tkrizek@isc.org>
Fri, 23 Sep 2022 13:25:31 +0000 (15:25 +0200)
committerTom Krizek <tkrizek@isc.org>
Fri, 2 Dec 2022 09:23:52 +0000 (10:23 +0100)
pkcs11-tool which is typically part of the opensc package is required
for the keyfromlabel test.

bin/tests/system/keyfromlabel/prereq.sh

index 296452b4026132a2b6ac000ea1b09f49725c0ebc..2002c2a46916d8e0717ac89959002fc71995ec9c 100644 (file)
@@ -13,9 +13,9 @@
 
 . ../conf.sh
 
-if [ -n "${SOFTHSM2_MODULE}" ] && command -v softhsm2-util >/dev/null; then
+if [ -n "${SOFTHSM2_MODULE}" ] && command -v pkcs11-tool >/dev/null && command -v softhsm2-util >/dev/null; then
        exit 0
 fi
 
-echo_i "skip: softhsm2-util not available"
+echo_i "skip: softhsm2-util or pkcs11-tool not available"
 exit 255