[Kde-pim] GPGSM always opens a pinentry: makes automated tests impossible

Sandro Knauß mail at sandroknauss.de
Thu Mar 7 23:15:30 GMT 2013


Hello,

> I don't know either but maybe we could have a fake pinentry program that
> delivers a predetermined passphrase.
> The pinentry program seems to be specified by gpg-agent..conf so a unit
> test environment could likely have a special version of that.

Many thanks to point me to a fake pinentry program, after three hours i got a 
working fake pinentry program:

#!/bin/bash

echo "OK Your orders please"
while :
do
        read cmd
        echo "OK"
        [ "$cmd" == "BYE" ] && break
done

Regards

sandro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20130308/3defa8e6/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list