aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/Makefile.am
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2026-05-15 09:45:08 +0200
committerNIIBE Yutaka <[email protected]>2026-05-15 09:45:08 +0200
commit45ccb2fa0ee4613a5327a8d7cddd060be4fbeec1 (patch)
tree109da59c55810609d5a7d453adffde4b28953b96 /tests/gpg/Makefile.am
parentw32:tests: Fix Makefiles and start-stop-agent for EXEEXT. (diff)
downloadgpgme-45ccb2fa0ee4613a5327a8d7cddd060be4fbeec1.tar.gz
gpgme-45ccb2fa0ee4613a5327a8d7cddd060be4fbeec1.zip
w32:tests: Use pinentry executable instead of script.
* tests/gpg/pinentry: Remove. * tests/gpg/pinentry.c: New. * tests/gpg/Makefile.am (EXTRA_DIST): Remove pinentry script. (noinst_PROGRAMS): Add pinentry executable and its rules to build. * tests/json/Makefile.am (gpg-agent.conf): Use pinentry executable. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests/gpg/Makefile.am')
-rw-r--r--tests/gpg/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am
index 4ceb6102..a6c76666 100644
--- a/tests/gpg/Makefile.am
+++ b/tests/gpg/Makefile.am
@@ -61,7 +61,7 @@ private_keys = \
EXTRA_DIST = initial.test final.test \
pubdemo.asc secdemo.asc cipher-1.asc cipher-2.asc \
cipher-3.asc cipher-no-sig.asc \
- geheim.txt pubkey-1.asc seckey-1.asc pinentry $(private_keys) \
+ geheim.txt pubkey-1.asc seckey-1.asc $(private_keys) \
gpg.conf.in ownertrust.txt
BUILT_SOURCES = gpg.conf gpg-agent.conf pubring-stamp \
@@ -91,6 +91,7 @@ endif
noinst_PROGRAMS = $(c_tests) $(tests_skipped)
+noinst_PROGRAMS += pinentry$(EXEEXT)
clean-local:
-$(TESTS_ENVIRONMENT) $(top_srcdir)/tests/start-stop-agent --stop
@@ -122,5 +123,10 @@ gpg-agent.conf:
# smartcard reader (error might be: Unusable secret key)
echo disable-scdaemon >> ./gpg-agent.conf
+pinentry.o: $(srcdir)/pinentry.c
+ $(CC) $(CFLAGS) -c $(srcdir)/pinentry.c
+
+pinentry$(EXEEXT): pinentry.o
+ $(CC) -o $@ pinentry.o
# end-of-file