summaryrefslogtreecommitdiff
path: root/tests/suite/certtool-pkcs11.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/certtool-pkcs11.sh')
-rwxr-xr-xtests/suite/certtool-pkcs11.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/suite/certtool-pkcs11.sh b/tests/suite/certtool-pkcs11.sh
index 7bc0784249..6a083bced3 100755
--- a/tests/suite/certtool-pkcs11.sh
+++ b/tests/suite/certtool-pkcs11.sh
@@ -22,10 +22,26 @@ srcdir="${srcdir:-.}"
P11TOOL="${P11TOOL:-../../src/p11tool${EXEEXT}}"
CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}"
DIFF="${DIFF:-diff -b -B}"
-SERV="${SERV:-../../src/gnutls-serv${EXEEXT}} -q"
+SERV="${SERV:-../../src/gnutls-serv${EXEEXT}}"
CLI="${CLI:-../../src/gnutls-cli${EXEEXT}}"
RETCODE=0
+if ! test -x "${P11TOOL}"; then
+ exit 77
+fi
+
+if ! test -x "${CERTTOOL}"; then
+ exit 77
+fi
+
+if ! test -x "${SERV}"; then
+ exit 77
+fi
+
+if ! test -x "${CLI}"; then
+ exit 77
+fi
+
if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute valgrind --leak-check=full"
fi
@@ -38,6 +54,7 @@ if test "${WINDIR}" != ""; then
fi
P11TOOL="${VALGRIND} ${P11TOOL} --batch"
+SERV="${SERV} -q"
. ${srcdir}/../scripts/common.sh