gpgme/lang/qt/tests
Ingo Klöcker ed7e7df2e1 qt: Support WKD lookup without implicit import
* lang/qt/src/Makefile.am (qgpgme_sources): Add qgpgmewkdlookupjob.cpp,
wkdlookupresult.cpp.
(qgpgme_headers): Add wkdlookupjob.h, wkdlookupresult.h.
(camelcase_headers): Add WKDLookupJob, WKDLookupResult.
(private_qgpgme_headers): Add qgpgmewkdlookupjob.h.
(qgpgme_moc_sources): Add qgpgmewkdlookupjob.moc, wkdlookupjob.moc.
* lang/qt/src/job.cpp: Define c'tor and d'tor of WKDLookupJob.
* lang/qt/src/protocol.h (Protocol::wkdLookupJob): New.
* lang/qt/src/protocol_p.h (Protocol::wkdLookupJob): New.
* lang/qt/src/qgpgmewkdlookupjob.cpp, lang/qt/src/qgpgmewkdlookupjob.h,
lang/qt/src/wkdlookupjob.h, lang/qt/src/wkdlookupresult.cpp,
lang/qt/src/wkdlookupresult.h: New.

* lang/qt/tests/Makefile.am (EXTRA_DIST): Add final.test.
(the_tests): New.
(TESTS): Remove all t-*. Add $(the_tests) and final.test.
(moc_files): Add t-wkdlookup.moc.
(t_wkdlookup_SOURCES): New.
(noinst_PROGRAMS): Add t-wkdlookup.
* lang/qt/tests/final.test: New.
* lang/qt/tests/t-support.h (QTest::toString): New template
specialization for std::string.
* lang/qt/tests/t-wkdlookup.cpp: New.
--

The new WKDLookupJob allows running a WKD lookup without implicit
import of the retrieved key. This makes it possible to do WKD lookups
similar to keyserver lookups (aka external keylistings).

The new final.test pseudo test stops a dirmngr that may have been
started by the tests. The toString() template specialization enables
printing of the actual and expected values in case of failed QCOMPARE.

GnuPG-bug-id: 5728
2021-12-13 10:48:52 +01:00
..
final.test qt: Support WKD lookup without implicit import 2021-12-13 10:48:52 +01:00
initial.test Qt: Fix unit test by adding initial.test dep 2016-04-11 17:46:03 +02:00
Makefile.am qt: Support WKD lookup without implicit import 2021-12-13 10:48:52 +01:00
run-keyformailboxjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-changeexpiryjob.cpp qt: Add test for ChangeExpiryJob 2021-06-28 11:56:12 +02:00
t-config.cpp qt: Allow retrieving the default value of a config entry 2021-06-29 12:12:33 +02:00
t-encrypt.cpp qt, tests: Add check for supported versions 2019-11-06 09:21:02 +01:00
t-keylist.cpp qt: Fix build against Qt 5.9 2021-09-13 17:30:49 +02:00
t-keylocate.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-ownertrust.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-remarks.cpp qt: Allow build with older GnuPG (< 2.2.18). 2020-11-11 11:58:28 +09:00
t-support.cpp qt, tests: Add check for supported versions 2019-11-06 09:21:02 +01:00
t-support.h qt: Support WKD lookup without implicit import 2021-12-13 10:48:52 +01:00
t-tofuinfo.cpp qt: Use tofu conflict test keys without expiry 2019-01-09 08:26:25 +01:00
t-trustsignatures.cpp qt: Fix filenames in copyright headers 2021-06-28 11:56:12 +02:00
t-various.cpp qt: Fix build against Qt 5.9 2021-09-13 17:30:49 +02:00
t-verify.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-wkdlookup.cpp qt: Support WKD lookup without implicit import 2021-12-13 10:48:52 +01:00
t-wkspublish.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00