<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/qt/tests/t-various.cpp, branch gpgme-1.17.0</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.17.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.17.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2022-01-13T11:40:35Z</updated>
<entry>
<title>qt,tests: Add helper to hook up the test passphrase provider</title>
<updated>2022-01-13T11:40:35Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-01-13T11:40:35Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=d308910cdfb31accae7cf790a956eb2f3cc6ae71'/>
<id>urn:sha1:d308910cdfb31accae7cf790a956eb2f3cc6ae71</id>
<content type='text'>
* lang/qt/tests/t-support.h, lang/qt/tests/t-support.cpp
(class QGpgMETest): Add member function hookUpPassphraseProvider.
Add member mPassphraseProvider.
* lang/qt/tests/t-changeexpiryjob.cpp,
lang/qt/tests/t-encrypt.cpp,
lang/qt/tests/t-remarks.cpp,
lang/qt/tests/t-tofuinfo.cpp,
lang/qt/tests/t-trustsignatures.cpp,
lang/qt/tests/t-various.cpp: Use new helper.
--

GnuPG-bug-id: 5770
</content>
</entry>
<entry>
<title>qt,tests: Add asyncDone signal to base class of all tests</title>
<updated>2022-01-13T10:36:35Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2022-01-13T10:36:35Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=a54402fc2d1c1364843d3c88b5b07dbb7fc007d1'/>
<id>urn:sha1:a54402fc2d1c1364843d3c88b5b07dbb7fc007d1</id>
<content type='text'>
* lang/qt/tests/t-support.h (class QGpgMETest): Add signal asyncDone.
* lang/qt/tests/t-changeexpiryjob.cpp,
lang/qt/tests/t-encrypt.cpp,
lang/qt/tests/t-import.cpp,
lang/qt/tests/t-keylist.cpp,
lang/qt/tests/t-keylocate.cpp,
lang/qt/tests/t-ownertrust.cpp,
lang/qt/tests/t-remarks.cpp,
lang/qt/tests/t-tofuinfo.cpp,
lang/qt/tests/t-trustsignatures.cpp,
lang/qt/tests/t-various.cpp,
lang/qt/tests/t-wkdlookup.cpp,
lang/qt/tests/t-wkspublish.cpp: Remove signal asyncDone from the test
classes.
--

This reduces duplication and makes it possible to use the signal in
the base class.

GnuPG-bug-id: 5770
</content>
</entry>
<entry>
<title>qt: Fix build against Qt 5.9</title>
<updated>2021-09-13T15:30:49Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-09-13T15:30:49Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=ab9bca09eb869b2013c85fee232f1e62aed925f6'/>
<id>urn:sha1:ab9bca09eb869b2013c85fee232f1e62aed925f6</id>
<content type='text'>
* lang/qt/tests/t-keylist.cpp (KeyListTest::testListAllKeysSync):
Ensure same type for both arguments of QCOMPARE.
* lang/qt/tests/t-various.cpp (TestVarious::testSetExpire):
Ensure same type for both arguments of QCOMPARE.
--

Qt 5.9 does not yet have the generic qCompare helper which supports
arguments of any type that can be compared with ==.

GnuPG-bug-id: 5592
</content>
</entry>
<entry>
<title>Make sure expiration time is interpreted as unsigned number</title>
<updated>2021-07-08T09:54:06Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-07-08T09:54:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=6a79e90dedc19877ae1c520fed875b57089a5425'/>
<id>urn:sha1:6a79e90dedc19877ae1c520fed875b57089a5425</id>
<content type='text'>
* lang/qt/tests/t-various.cpp (testSignKeyWithExpiration): Convert
expiration time to uint_least32_t.
--

This fixes the test on 32-bit systems where time_t (the return type of
expirationTime()) is a signed 32-bit integer type.

GnuPG-bug-id: 5522
</content>
</entry>
<entry>
<title>qt: Extend SignKeyJob to create signatures with expiration date</title>
<updated>2021-06-22T16:49:45Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2021-06-22T16:49:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=ac4536990a4fed4a45a0851260c029e69d0cadf6'/>
<id>urn:sha1:ac4536990a4fed4a45a0851260c029e69d0cadf6</id>
<content type='text'>
* lang/qt/src/signkeyjob.h (SignKeyJob::setExpirationDate): New.
* lang/qt/src/qgpgmesignkeyjob.h, lang/qt/src/qgpgmesignkeyjob.cpp
(QGpgMESignKeyJob::setExpirationDate): New.
* lang/qt/src/qgpgmesignkeyjob.cpp (QGpgMESignKeyJob::Private): Add
member m_expiration.
(sign_key): Handle expiration date.
(QGpgMESignKeyJob::start): Pass expiration date to sign_key.

* lang/qt/tests/t-various.cpp
(TestVarious::testSignKeyWithoutExpiration,
TestVarious::testSignKeyWithExpiration): New.
(TestVarious::initTestCase): Add "allow-weak-key-signatures" to
gpg.conf.
--

This allows Kleopatra (and other users of QGpgme) to create key
signatures with expiration date.

GnuPG-bug-id: 5336, 5506
</content>
</entry>
<entry>
<title>cpp, qt: Add missing comparison operators for version info comparison</title>
<updated>2020-10-23T11:50:16Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-10-15T14:50:32Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=c3406462d11b4241d4feee9be08e0ebe4f2e0bfa'/>
<id>urn:sha1:c3406462d11b4241d4feee9be08e0ebe4f2e0bfa</id>
<content type='text'>
* lang/cpp/src/engineinfo.h (EngineInfo::Version::operator&lt;=,
EngineInfo::Version::operator&gt;=, EngineInfo::Version::operator!=):
New.
* lang/qt/tests/t-various.cpp (TestVarious::testVersion): Add tests for
new comparison operators.
* NEWS: Mention added API
</content>
</entry>
<entry>
<title>cpp, qt: Fix version info comparison</title>
<updated>2020-10-23T11:50:16Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-10-15T14:45:31Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=2f53a2f4be86c0829213e2a9f846b7f8f0b106dc'/>
<id>urn:sha1:2f53a2f4be86c0829213e2a9f846b7f8f0b106dc</id>
<content type='text'>
* lang/cpp/src/engineinfo.h
(EngineInfo::Version::operator&gt;(const Version &amp;)): Fix logic.
(EngineInfo::Version::operator&gt;(const char *)): Use Version-overload of
operator&gt;.

* lang/qt/tests/t-various.cpp: Add test.
--

This fixes a logic error that 2.0.0 &gt; 2.0.0 would return true.
</content>
</entry>
<entry>
<title>core: Add error handling to setexpire</title>
<updated>2020-08-14T09:11:23Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-08-14T09:11:23Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=f66f856c89b7c02e368afe2343de7cce50e6109e'/>
<id>urn:sha1:f66f856c89b7c02e368afe2343de7cce50e6109e</id>
<content type='text'>
* src/genkey.c (setexpire, gpgme_op_setexpire_start,
gpgme_op_setexpire): Move to ...
* src/setexpire.c: New.
* src/Makefile.am (main_sources): Add that file.
* src/context.h (ctx_op_data_id_t): Add OPDATA_SETEXPIRE.

* lang/qt/tests/t-various.cpp (testSetExpire): Test error handling.
--

Errors (and failures) emitted via status-fd need to be handled
explicitly, i.e. we need to provide an appropriate status handler with
corresponding op_data_t. Additionally, we need to set a passphrase
command handler if a passphrase callback is set in the context, e.g.
during tests.

GnuPG-bug-id: 4395
</content>
</entry>
<entry>
<title>qt: Add test for setExpire</title>
<updated>2020-08-04T14:53:57Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2020-08-04T14:23:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=84c6b6e2fea1176991bd89ac421af492d4550d6e'/>
<id>urn:sha1:84c6b6e2fea1176991bd89ac421af492d4550d6e</id>
<content type='text'>
* lang/qt/tests/t-various.cpp (TestVarious::testSetExpire): New.
--

GnuPG-bug-id: 5003
</content>
</entry>
<entry>
<title>qt,tests: Move remarks test out and extend it</title>
<updated>2019-11-04T10:18:35Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-11-04T10:18:35Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=db888b1cc05723423a3154fe89e6191812c9c869'/>
<id>urn:sha1:db888b1cc05723423a3154fe89e6191812c9c869</id>
<content type='text'>
* lang/qt/tests/t-various.cpp (testRemarks): Move out.
* lang/qt/tests/t-remarks.cpp: New.
* lang/qt/tests/Makefile.am: Update accordingly.
--
While t-various is nice to add a quick test for more
extensive stuff it is better to move it in its own test.

This also tests with a key that has only a single uid.
</content>
</entry>
</feed>
