From cc22a052f40ba800acde7d81fe0ab91b56e66921 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 29 Jun 2016 17:25:06 +0200 Subject: tests: use datefudge in name-constraints test This avoids the expiration of the used certificate to affect the test. --- tests/cert-tests/name-constraints | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/cert-tests/name-constraints b/tests/cert-tests/name-constraints index c818f59f6d..9645879a5c 100755 --- a/tests/cert-tests/name-constraints +++ b/tests/cert-tests/name-constraints @@ -28,7 +28,12 @@ if ! test -z "${VALGRIND}"; then fi TMPFILE=tmp.$$.pem -${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/data/name-constraints-ip.pem" +. ${srcdir}/../scripts/common.sh + +check_for_datefudge + +datefudge -s "2016-04-22" \ + ${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/data/name-constraints-ip.pem" rc=$? if test "${rc}" != "0"; then -- cgit v1.2.1