server: Add test for nbdkit_read_password
commitd15996d695a8ff6267695da339b37dcaab755e44
authorEric Blake <eblake@redhat.com>
Wed, 31 Jul 2019 15:27:11 +0000 (31 10:27 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 1 Aug 2019 11:06:44 +0000 (1 06:06 -0500)
tree9e658f3a884f41d86f057444f28bd5a638c4f295
parented75816614dc8d89bbd6cfce52d2408f9a404f10
server: Add test for nbdkit_read_password

Testing interactive passwords is difficult (we'd have to spawn a pty),
and left for another day.  But reading passwords from a file or as a
direct argument is easy.

Signed-off-by: Eric Blake <eblake@redhat.com>
server/test-utils.c