tests: Stop daemons after setting up test environment

* lang/python/tests/Makefile.am, lang/qt/tests/Makefile.am,
tests/gpg/Makefile.am, tests/json/Makefile.am (pubring-stamp): Call
`gpgconf --kill all` after importing test keys.
--

This ensures that no gpg-agents or other daemons are running after
"make".
This commit is contained in:
Ingo Klöcker 2023-02-08 14:59:28 +01:00
parent fcefc78f74
commit 7098c14b23
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9
4 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,7 @@ pubring-stamp: $(test_srcdir)/pubdemo.asc gpg-sample.stamp
--import $(test_srcdir)/pubdemo.asc --import $(test_srcdir)/pubdemo.asc
-$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \ -$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \
--import $(test_srcdir)/secdemo.asc --import $(test_srcdir)/secdemo.asc
-$(TESTS_ENVIRONMENT) gpgconf --kill all
echo x > ./pubring-stamp echo x > ./pubring-stamp
gpg.conf: gpg.conf:

View File

@ -136,6 +136,7 @@ pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc \
$(TESTS_ENVIRONMENT) $(GPG) --no-permission-warning \ $(TESTS_ENVIRONMENT) $(GPG) --no-permission-warning \
--passphrase "abc" \ --passphrase "abc" \
--import $(top_srcdir)/tests/gpg/secdemo.asc --import $(top_srcdir)/tests/gpg/secdemo.asc
-$(TESTS_ENVIRONMENT) gpgconf --kill all
touch pubring-stamp touch pubring-stamp
.cpp.moc: .cpp.moc:

View File

@ -110,6 +110,7 @@ pubring-stamp: $(srcdir)/pubdemo.asc gpg-sample.stamp
--import $(srcdir)/secdemo.asc --import $(srcdir)/secdemo.asc
-$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \ -$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \
--import-ownertrust $(srcdir)/ownertrust.txt --import-ownertrust $(srcdir)/ownertrust.txt
-$(TESTS_ENVIRONMENT) gpgconf --kill all
echo x > ./pubring-stamp echo x > ./pubring-stamp
gpg.conf: $(srcdir)/gpg.conf.in gpg.conf: $(srcdir)/gpg.conf.in

View File

@ -93,6 +93,7 @@ pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc gpg-sample.stamp
--import $(top_srcdir)/tests/gpg/pubdemo.asc --import $(top_srcdir)/tests/gpg/pubdemo.asc
-$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \ -$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \
--import $(top_srcdir)/tests/gpg/secdemo.asc --import $(top_srcdir)/tests/gpg/secdemo.asc
-$(TESTS_ENVIRONMENT) gpgconf --kill all
echo x > ./pubring-stamp echo x > ./pubring-stamp
gpg.conf: gpg.conf: