[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 09:54:24 CET 2018


Nikos Mavrogiannopoulos 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

What about grepping for "----BEGIN"?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/810#note_119558114
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/80f723bb/attachment.html>


More information about the Gnutls-devel mailing list