aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-08-06 16:16:30 +0000
committerIngo Klöcker <[email protected]>2024-08-07 08:53:22 +0000
commit0174575c8c169cd00f65ed509d91355dea26995f (patch)
tree8b9b68a8ef511f46b7edd3526c9af58261c7524f
parentqt: Use --quick-set-ownertrust if available (diff)
downloadgpgme-0174575c8c169cd00f65ed509d91355dea26995f.tar.gz
gpgme-0174575c8c169cd00f65ed509d91355dea26995f.zip
qt,tests: Add make target to clean the keyring
* lang/qt/tests/Makefile.am (clean-keyring): New target. -- Many tests operate on the keyring in the build directory. If a test fails then the keyring might be in an unclean state causing subsequent tests to fail. The new make target allows cleaning the keyring without resorting to brute force with "make clean".
-rw-r--r--lang/qt/tests/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am
index cf6dbd55..ee168b75 100644
--- a/lang/qt/tests/Makefile.am
+++ b/lang/qt/tests/Makefile.am
@@ -403,6 +403,11 @@ clean-local:
-$(TESTS_ENVIRONMENT) $(top_srcdir)/tests/start-stop-agent --stop
-rm -fR private-keys-v1.d crls.d
+clean-keyring:
+ -$(TESTS_ENVIRONMENT) $(top_srcdir)/tests/start-stop-agent --stop
+ -rm -fR private-keys-v1.d crls.d pubring.gpg pubring.kbx secring.gpg \
+ trustdb.gpg pubring-stamp
+
pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc \
$(top_srcdir)/tests/gpg/secdemo.asc
-$(TESTS_ENVIRONMENT) gpgconf --kill all