summaryrefslogtreecommitdiff
path: root/tests/cert-tests/certtool
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cert-tests/certtool')
-rwxr-xr-xtests/cert-tests/certtool10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool
index b5d69dae09..6a8bcc8b81 100755
--- a/tests/cert-tests/certtool
+++ b/tests/cert-tests/certtool
@@ -79,13 +79,9 @@ fi
export TZ="UTC"
-# Check for datefudge
-TSTAMP=`datefudge "2006-09-23" date -u +%s || true`
-if test "$TSTAMP" != "1158969600" || test "$WINDOWS" = 1; then
-echo $TSTAMP
- echo "You need datefudge to run this test"
- exit 77
-fi
+. ${srcdir}/../scripts/common.sh
+
+check_for_datefudge
cat "${srcdir}/../certs/cert-ecc256.pem" "${srcdir}/../certs/ca-cert-ecc.pem"|datefudge "2012-11-22" \
${VALGRIND} "${CERTTOOL}" --verify-chain