summaryrefslogtreecommitdiff
path: root/tests/cert-tests/pkcs7
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2017-01-05 10:34:07 +0200
committerAlon Bar-Lev <alon.barlev@gmail.com>2017-01-05 11:16:38 +0200
commit98e49e9d0727d93a58b336dac0a78ce74558e8c8 (patch)
tree61653d08a7243ce4cd40f7f97efdd6c2e06b054d /tests/cert-tests/pkcs7
parent2c55e6b554a3d30ee92b37aae02536794fd5cac1 (diff)
downloadgnutls-98e49e9d0727d93a58b336dac0a78ce74558e8c8.tar.gz
tests: skip tests that requires tools if tools are disabled
building with --disable-tools should not cause test failure. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'tests/cert-tests/pkcs7')
-rwxr-xr-xtests/cert-tests/pkcs76
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cert-tests/pkcs7 b/tests/cert-tests/pkcs7
index d6972603da..a06d92fbb6 100755
--- a/tests/cert-tests/pkcs7
+++ b/tests/cert-tests/pkcs7
@@ -23,9 +23,15 @@
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} --error-exitcode=15"
fi
+
OUTFILE=out-pkcs7.$$.tmp
OUTFILE2=out2-pkcs7.$$.tmp