summaryrefslogtreecommitdiff
path: root/tests/ocsp-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ocsp-tests')
-rwxr-xr-xtests/ocsp-tests/ocsp-must-staple-connection16
-rwxr-xr-xtests/ocsp-tests/ocsp-test4
-rwxr-xr-xtests/ocsp-tests/ocsp-tls-connection16
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/ocsp-tests/ocsp-must-staple-connection b/tests/ocsp-tests/ocsp-must-staple-connection
index 2df3af1263..2c7aa1e322 100755
--- a/tests/ocsp-tests/ocsp-must-staple-connection
+++ b/tests/ocsp-tests/ocsp-must-staple-connection
@@ -31,6 +31,22 @@ OCSP_REQ_FILE="ms-req.$$.tmp"
export TZ="UTC"
+if ! test -x "${CERTTOOL}"; then
+ exit 77
+fi
+
+if ! test -x "${OCSPTOOL}"; then
+ exit 77
+fi
+
+if ! test -x "${GNUTLS_SERV}"; then
+ exit 77
+fi
+
+if ! test -x "${GNUTLS_CLI}"; then
+ exit 77
+fi
+
if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=15"
fi
diff --git a/tests/ocsp-tests/ocsp-test b/tests/ocsp-tests/ocsp-test
index 5fe2659162..e3a3ef5613 100755
--- a/tests/ocsp-tests/ocsp-test
+++ b/tests/ocsp-tests/ocsp-test
@@ -24,6 +24,10 @@ srcdir="${srcdir:-.}"
OCSPTOOL="${OCSPTOOL:-../../src/ocsptool${EXEEXT}}"
DIFF="${DIFF:-diff}"
+if ! test -x "${OCSPTOOL}"; then
+ exit 77
+fi
+
export TZ="UTC"
# Check for datefudge
diff --git a/tests/ocsp-tests/ocsp-tls-connection b/tests/ocsp-tests/ocsp-tls-connection
index 8a73f98650..d01b0fe9c9 100755
--- a/tests/ocsp-tests/ocsp-tls-connection
+++ b/tests/ocsp-tests/ocsp-tls-connection
@@ -30,6 +30,22 @@ DIFF="${DIFF:-diff}"
TEMPLATE_FILE="out.$$.tmpl.tmp"
SERVER_CERT_FILE="cert.$$.pem.tmp"
+if ! test -x "${CERTTOOL}"; then
+ exit 77
+fi
+
+if ! test -x "${OCSPTOOL}"; then
+ exit 77
+fi
+
+if ! test -x "${GNUTLS_SERV}"; then
+ exit 77
+fi
+
+if ! test -x "${GNUTLS_CLI}"; then
+ exit 77
+fi
+
if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=15"
fi