Commit 47f25d9e authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos
Browse files

tests: use datefudge in name-constraints test

This avoids the expiration of the used certificate to affect the test.
parent 6c5452a4
Pipeline #3614030 failed with stage
in 206 minutes and 17 seconds
......@@ -28,7 +28,18 @@ if ! test -z "${VALGRIND}"; then
${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/name-constraints-ip.pem"
export TZ="UTC"
# Check for datefudge
TSTAMP=`datefudge -s "2006-09-23" date -u +%s || true`
if test "$TSTAMP" != "1158969600"; then
echo $TSTAMP
echo "You need datefudge to run this test"
exit 77
datefudge -s "2016-04-22" \
${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/name-constraints-ip.pem"
if test "${rc}" != "0"; then
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment