tests: Add logging to fake pinentry.
authorJustus Winter <justus@g10code.com>
Tue, 19 Apr 2016 12:21:10 +0000 (14:21 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 23 May 2016 14:06:53 +0000 (16:06 +0200)
commit41b10c66ec1dd33633386f4fc8013ddeab7737ca
tree927da2e3c1b51e91dbc24be653ecb5f3f777dc33
parenta54e89a58576108fcae10ceeb4fc65822aecc170
tests: Add logging to fake pinentry.

* tests/openpgp/fake-pinentry.c (log_stream): New variable.
(reply): New function.
(spacep,skip_options,option_value): Copy from common.
(main): Parse arguments, add --logfile option, write logfile.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/openpgp/fake-pinentry.c