Qt: Fix tests if gpg2 is gpg
* lang/qt/tests/Makefile.am (pubring-stamp): Loopback and provide passphrase on command line when importing.
This commit is contained in:
parent
fddcc62abd
commit
e4c0645c1e
@ -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 \
|
CLEANFILES = secring.gpg pubring.gpg pubring.kbx trustdb.gpg dirmngr.conf \
|
||||||
gpg-agent.conf pubring.kbx~ S.gpg-agent gpg.conf pubring.gpg~ \
|
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:
|
clean-local:
|
||||||
-rm -fR -- private-keys-v1.d
|
-rm -fR -- private-keys-v1.d
|
||||||
@ -68,9 +69,14 @@ export GNUPGHOME := $(abs_builddir)
|
|||||||
|
|
||||||
./pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc \
|
./pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc \
|
||||||
$(top_srcdir)/tests/gpg/secdemo.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 \
|
$(GPG) --no-permission-warning \
|
||||||
--import $(top_srcdir)/tests/gpg/pubdemo.asc
|
--import $(top_srcdir)/tests/gpg/pubdemo.asc
|
||||||
$(GPG) --no-permission-warning \
|
$(GPG) --no-permission-warning \
|
||||||
|
--passphrase "abc" \
|
||||||
--import $(top_srcdir)/tests/gpg/secdemo.asc
|
--import $(top_srcdir)/tests/gpg/secdemo.asc
|
||||||
touch ./pubring-stamp
|
touch ./pubring-stamp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user