[gnutls-devel] GnuTLS | certtool: don't output textual information if --no-text was given (!810)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Fri Nov 23 01:29:36 CET 2018
Dmitry Eremin-Solenikov commented on a discussion on tests/cert-tests/pem-decoding:
> +#check if --no-text works as expected
> +${VALGRIND} "${CERTTOOL}" --certificate-info --infile "${srcdir}/data/cert-ecc256.pem" --no-text >${TMPFILE}
> +rc=$?
> +
> +if test "${rc}" != "0"; then
> + echo "--no-text -k --certificate-info failed 1"
> + exit ${rc}
> +fi
> +
> +if ( head -n 1 ${TMPFILE} ; tail -n 1 ${TMPFILE} ) | grep -v -- -----
> +then
> + echo "--no-text -k --certificate-info failed 2"
> + exit 1
> +fi
> +
> +#check if --no-text works as expected
This would be harder to test. Any suggestions other than using `cmp` command?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/810#note_119508346
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181123/2588e126/attachment.html>
More information about the Gnutls-devel
mailing list