summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-10-26 04:24:39 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2017-10-26 04:39:49 +0200
commit05cb87276c21c3a47226c75026fa46a955553dd9 (patch)
tree2603f9a046c99747b3aed12efdf8c274f2b23f13 /tests
parentFix comment of configure. (diff)
downloadgnupg2-05cb87276c21c3a47226c75026fa46a955553dd9.tar.xz
gnupg2-05cb87276c21c3a47226c75026fa46a955553dd9.zip
agent, tests: Support --disable-scdaemon build case.
* agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON. * tests/openpgp/defs.scm (create-gpghome): Likewise. * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise. -- We could modify gpg-agent to remove all support of scdaemon, with no inclusion of call-scd.c, divert-scd.c, and learncard.c, but it would not be worth to do that. GnuPG-bug-id: 3316 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/gpgsm/gpgsm-defs.scm4
-rw-r--r--tests/openpgp/defs.scm4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/gpgsm/gpgsm-defs.scm b/tests/gpgsm/gpgsm-defs.scm
index d99d7dad4..c78a12797 100644
--- a/tests/gpgsm/gpgsm-defs.scm
+++ b/tests/gpgsm/gpgsm-defs.scm
@@ -67,7 +67,9 @@
"faked-system-time 1008241200")
(create-file "gpg-agent.conf"
(string-append "pinentry-program " (tool 'pinentry))
- (string-append "scdaemon-program " (tool 'scdaemon))
+ (if (assoc "scdaemon" gpg-components)
+ (string-append "scdaemon-program " (tool 'scdaemon))
+ "# No scdaemon available")
)
(start-agent)
(create-file
diff --git a/tests/openpgp/defs.scm b/tests/openpgp/defs.scm
index f52f31614..a6347fe1f 100644
--- a/tests/openpgp/defs.scm
+++ b/tests/openpgp/defs.scm
@@ -354,7 +354,9 @@
(if (flag "--extended-key-format" *args*)
"enable-extended-key-format" "#enable-extended-key-format")
(string-append "pinentry-program " (tool 'pinentry))
- (string-append "scdaemon-program " (tool 'scdaemon))
+ (if (assoc "scdaemon" gpg-components)
+ (string-append "scdaemon-program " (tool 'scdaemon))
+ "# No scdaemon available")
))
;; Initialize the test environment, install appropriate configuration