[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
Thu Nov 22 09:05:04 CET 2018


Nikos Mavrogiannopoulos started a new 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

should we also test here that if output type is DER, no textual data is added? That was a common regression in the past.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/810#note_119258371
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/20181122/54afc225/attachment-0001.html>


More information about the Gnutls-devel mailing list