diff options
Diffstat (limited to 'tests/cert-tests/certtool')
-rwxr-xr-x | tests/cert-tests/certtool | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool index e604634678..3494aaacbe 100755 --- a/tests/cert-tests/certtool +++ b/tests/cert-tests/certtool @@ -153,6 +153,18 @@ if test $? = 0;then exit 1 fi +${VALGRIND} "${CERTTOOL}" -i --infile "${srcdir}/data/commonName.cer" | grep -v "Not After:" > ${TMPFILE1} +if test $? != 0;then + echo "commonName cert output failed" + exit 1 +fi + +${DIFF} "${srcdir}/data/commonName.cer" ${TMPFILE1} +if test $? != 0;then + exit 1 +fi + + rm -f ${TMPFILE1} ${TMPFILE2} export TZ="UTC" |