]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Gate enginepkcs11 with the softhsm2_environment marker
authorNicki Křížek <nicki@isc.org>
Wed, 1 Jul 2026 13:40:07 +0000 (13:40 +0000)
committerNicki Křížek <nicki@isc.org>
Fri, 10 Jul 2026 11:17:41 +0000 (13:17 +0200)
Completes enginepkcs11's conversion, removing its prereq.sh.
softhsm2_environment already existed in isctest.mark.

Assisted-by: Claude:claude-opus-4-8
bin/tests/system/enginepkcs11/prereq.sh [deleted file]
bin/tests/system/enginepkcs11/tests_sh_enginepkcs11.py

diff --git a/bin/tests/system/enginepkcs11/prereq.sh b/bin/tests/system/enginepkcs11/prereq.sh
deleted file mode 100644 (file)
index be1850a..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh -e
-#
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-. ../conf.sh
-
-[ -n "${SOFTHSM2_CONF}" ] || {
-  echo_i "skip: softhsm2 configuration not available"
-  exit 255
-}
-
-[ -f "$SOFTHSM2_MODULE" ] || {
-  echo_i "skip: softhsm2 module not available"
-  exit 1
-}
-
-for _bin in softhsm2-util pkcs11-tool; do
-  command -v "$_bin" >/dev/null || {
-    echo_i "skip: $_bin not available"
-    exit 1
-  }
-done
index 42f26e31f3ed699b47ca4f53e5f6e77eaa8315de..7eacf4128e03432149c02c61b9b6395672bcbf05 100644 (file)
@@ -52,6 +52,7 @@ EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
 
 pytestmark = [
     isctest.mark.with_pkcs11_provider,
+    isctest.mark.softhsm2_environment,
     EXTRA_ARTIFACTS,
 ]