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".
This commit is contained in:
Ingo Klöcker 2024-08-06 18:16:30 +02:00
parent a73eee3655
commit 0174575c8c
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -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