summaryrefslogtreecommitdiff
path: root/tests/cert-tests/pathlen
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cert-tests/pathlen')
-rwxr-xr-xtests/cert-tests/pathlen6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cert-tests/pathlen b/tests/cert-tests/pathlen
index 687ebc244c..7f250e03b4 100755
--- a/tests/cert-tests/pathlen
+++ b/tests/cert-tests/pathlen
@@ -25,9 +25,15 @@ set -e
srcdir="${srcdir:-.}"
CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}"
DIFF="${DIFF:-diff -b -B}"
+
+if ! test -x "${CERTTOOL}"; then
+ exit 77
+fi
+
if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}"
fi
+
TMPFILE1=ca-no-pathlen-$$.tmp
TMPFILE2=no-ca-or-pathlen-$$.tmp
${VALGRIND} "${CERTTOOL}" --certificate-info --infile "${srcdir}/data/ca-no-pathlen.pem" \