diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-02-21 20:46:15 -0500 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-02-28 19:57:35 -0500 |
commit | b7250496bd2d681a7a7f3c958eb3f0047b5c0a22 (patch) | |
tree | 45ade9b45313fcca74a6c018d186dc4d24a2f681 /test/data | |
parent | 7b5e1c8238ef961fd3305b1dce053b9bced684ba (diff) | |
download | emacs-b7250496bd2d681a7a7f3c958eb3f0047b5c0a22.tar.gz |
Fix epg-tests with dummy-pinentry program (Bug#23619)
* test/data/epg/dummy-pinentry: New file.
* test/lisp/epg-tests.el (with-epg-tests): Add it to gpg-agent.conf
when a passphrase is required. Add debug declaration. Set
GPG_AGENT_INFO non-destructively.
Diffstat (limited to 'test/data')
-rwxr-xr-x | test/data/epg/dummy-pinentry | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/data/epg/dummy-pinentry b/test/data/epg/dummy-pinentry new file mode 100755 index 00000000000..2228dfb0c6d --- /dev/null +++ b/test/data/epg/dummy-pinentry @@ -0,0 +1,22 @@ +#! /bin/bash +# Dummy pinentry +# +# Copyright 2008 g10 Code GmbH +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This file is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. + +echo OK Your orders please + +while read cmd; do + case $cmd in + GETPIN) echo D test0123456789; echo OK;; + *) echo OK;; + esac +done |