mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests,w32: Fix GPGME tests requiring a pinentry.
* tests/gpgme/gpgme-defs.scm: Use our fake pinentry, and configure it to supply the correct passphrase. -- Previously, the GPGME tests used the fake pinentry distributed with GPGME which is a Bourne shell script. Use the fake pinentry from GnuPG instead. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
7d5a0ed792
commit
02a39f0d1e
@ -42,6 +42,9 @@
|
||||
(setenv "PATH" (string-append (path-join (getenv "GNUPG_BUILDDIR") "tools")
|
||||
(string *pathsep*) (getenv "PATH")) #t)
|
||||
|
||||
;; The tests expect the pinentry to return the passphrase "abc".
|
||||
(setenv "PINENTRY_USER_DATA" "abc" #t)
|
||||
|
||||
(define (create-file name content)
|
||||
(letfd ((fd (open name (logior O_WRONLY O_CREAT O_BINARY) #o600)))
|
||||
(display content (fdopen fd "wb"))))
|
||||
@ -50,8 +53,7 @@
|
||||
(create-file "gpg.conf" "no-force-v3-sigs\n")
|
||||
(create-file
|
||||
"gpg-agent.conf"
|
||||
(string-append "pinentry-program "
|
||||
(in-gpgme-srcdir "tests" "gpg" "pinentry") "\n"))
|
||||
(string-append "pinentry-program " (tool 'pinentry)))
|
||||
(mkdir "private-keys-v1.d" "-rwx")
|
||||
|
||||
(log "Storing private keys")
|
||||
|
Loading…
x
Reference in New Issue
Block a user