]> git.eshelyaron.com Git - emacs.git/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>
Thu, 19 May 2016 09:11:06 +0000 (18:11 +0900)
commitd4ae6d7033b34e8b75c59aaf1584131e439ef2d5
treebf3d9d66e3e2356d3933236e6f0897677d721d5c
parentebc3a94e27ec9dcbe24790795741c062bed2c1a0
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/automated/epg-tests.el