]> code.delx.au - gnu-emacs/commit
epg: Add a way to detect gpg1 executable for tests
authorDaiki Ueno <ueno@gnu.org>
Thu, 19 May 2016 09:05:19 +0000 (18:05 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 20 May 2016 07:29:04 +0000 (16:29 +0900)
commit65e38569e5eca8e4e8a0e38391c07e3862e78cb7
tree5360e3d251365b68281a7c7e06263de892113b6a
parent970074470d7bc332fc36fd30feee93e1d6130177
epg: Add a way to detect gpg1 executable for tests

Fixes bug#23561.

* test/automated/epg-tests.el
(epg-tests-program-alist-for-passphrase-callback): New
constant.
(epg-tests-find-usable-gpg-configuration): New function,
renamed from `epg-tests-gpg-usable'.  All callers changed.
(epg-tests-gpg-usable): Remove.

* lisp/epg-config.el (epg-config--program-alist): Factor out
constructor element to...
(epg-config--configuration-constructor-alist): ...here.
(epg-find-configuration): Rename FORCE argument to NO-CACHE,
and add PROGRAM-ALIST argument.
lisp/epg-config.el
test/lisp/epg-tests.el