]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Only run pkcs11engine test if pkcs11-provider is available
authorMatthijs Mekking <matthijs@isc.org>
Tue, 10 Oct 2023 13:21:58 +0000 (15:21 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 25 Jan 2024 14:37:40 +0000 (15:37 +0100)
The bullseye and bookworm images are not set up with pkcs11-provider,
so we need to add an additional prerequisite for running the
pkcs11engine test. Check the path of OPENSSL_CONF.

.gitlab-ci.yml
bin/tests/system/enginepkcs11/prereq.sh

index 22e86f800eb3a43e5a7d2fc9fb0d5f16e5b1e465..99699f6a85b91df3707bbe05557e4a666bf7f3a1 100644 (file)
@@ -946,7 +946,7 @@ gcc:ossl3:sid:amd64:
   <<: *build_job
 
 system:gcc:ossl3:sid:amd64:
-  # Set up environment variables to run pkcs11-provider system tests
+  # Set up environment variables to run pkcs11-provider based system tests
   variables:
     OPENSSL_CONF: "/var/tmp/etc/openssl-provider.cnf"
     SOFTHSM2_CONF: "/var/tmp/softhsm2/softhsm2.conf"
index c6caa0dc88b81d49493907ff4e5007836103c0dc..449d9f2058da84129cb0ef32041214a9aeb1910d 100644 (file)
 
 . ../conf.sh
 
+[ "prereq/var/tmp/etc/openssl-provider.cnf" -eq "prereq${OPENSSL_CONF}" ] || {
+  echo_i "skip: pkcs11-provider not enabled"
+  exit 255
+}
+
 [ -n "${SOFTHSM2_CONF}" ] || {
   echo_i "skip: softhsm2 configuration not available"
   exit 255