[gnutls-devel] GnuTLS | Add an option "--logfile" to redirect informational messages to a specific file (!949)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Mar 15 19:05:38 CET 2019




Nikos Mavrogiannopoulos started a new discussion on tests/logfile-option.sh:

> +fi
> +
> +rm -f ${TMPFILE1} ${TMPFILE2}
> +
> +eval "${GETPORT}"
> +launch_server $$ --echo --priority NORMAL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=${PSK}
> +PID=$!
> +wait_server ${PID}
> +
> +${VALGRIND} "${CLI}" -p "${PORT}" 127.0.0.1 --logfile ${TMPFILE1} --priority NORMAL:+ECDHE-PSK:+DHE-PSK:+PSK --pskusername=jas --pskkey=9e32cf7786321a828ef7668f09fb35db </dev/null >${TMPFILE2}
> +
> +kill ${PID}
> +wait
> +
> +if ! test -f ${TMPFILE1};then
> +	echo "Logfile shoule be created!"

Wouldn't be useful to test for at least a known line? I'm thinking to detect if that file is created with completely bogus content or empty.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/949#note_150998695
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/20190315/3c086855/attachment-0001.html>


More information about the Gnutls-devel mailing list