xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/keyfromlabel/prereq.sh (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
1#!/bin/sh -e
2#
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# SPDX-License-Identifier: MPL-2.0
6#
7# This Source Code Form is subject to the terms of the Mozilla Public
8# License, v. 2.0. If a copy of the MPL was not distributed with this
9# file, you can obtain one at https://mozilla.org/MPL/2.0/.
10#
11# See the COPYRIGHT file distributed with this work for additional
12# information regarding copyright ownership.
13
14. ../conf.sh
15
16if [ -n "${SOFTHSM2_MODULE}" ] && command -v pkcs11-tool >/dev/null && command -v softhsm2-util >/dev/null; then
17  exit 0
18fi
19
20echo_i "skip: softhsm2-util or pkcs11-tool not available"
21exit 255
22