aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-07-14 13:31:50 +0000
committerAndre Heinecke <[email protected]>2016-07-14 13:33:16 +0000
commite4c0645c1eea9380d80a20895eb83c9dd7228776 (patch)
tree72edd565ea699b55a74d873d3dcdbef111e82401 /lang/qt/tests
parentpython: Fix test. (diff)
downloadgpgme-e4c0645c1eea9380d80a20895eb83c9dd7228776.tar.gz
gpgme-e4c0645c1eea9380d80a20895eb83c9dd7228776.zip
Qt: Fix tests if gpg2 is gpg
* lang/qt/tests/Makefile.am (pubring-stamp): Loopback and provide passphrase on command line when importing.
Diffstat (limited to 'lang/qt/tests')
-rw-r--r--lang/qt/tests/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am
index c49d85f8..e2ded78a 100644
--- a/lang/qt/tests/Makefile.am
+++ b/lang/qt/tests/Makefile.am
@@ -59,7 +59,8 @@ noinst_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo
CLEANFILES = secring.gpg pubring.gpg pubring.kbx trustdb.gpg dirmngr.conf \
gpg-agent.conf pubring.kbx~ S.gpg-agent gpg.conf pubring.gpg~ \
- random_seed S.gpg-agent .gpg-v21-migrated pubring-stamp $(moc_files)
+ random_seed S.gpg-agent .gpg-v21-migrated pubring-stamp $(moc_files) \
+ gpg.conf
clean-local:
-rm -fR -- private-keys-v1.d
@@ -68,9 +69,14 @@ export GNUPGHOME := $(abs_builddir)
./pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc \
$(top_srcdir)/tests/gpg/secdemo.asc
+ echo "ignore-invalid-options" > gpg-agent.conf
+ echo "allow-loopback-pinentry" > gpg-agent.conf
+ echo "ignore-invalid-options" > gpg.conf
+ echo "pinentry-mode loopback" > gpg.conf
$(GPG) --no-permission-warning \
--import $(top_srcdir)/tests/gpg/pubdemo.asc
$(GPG) --no-permission-warning \
+ --passphrase "abc" \
--import $(top_srcdir)/tests/gpg/secdemo.asc
touch ./pubring-stamp