diff options
author | Andre Heinecke <[email protected]> | 2016-08-09 12:10:15 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-08-09 12:23:51 +0000 |
commit | f209ec8f581ae597b37f2e3a5e452e4b53b2d4c7 (patch) | |
tree | 810a34c62c736aa302cb4e955086d96bf7276b0e /lang/qt/tests/t-tofuinfo.cpp | |
parent | Qt: Add support for EncryptJobs with generic flags (diff) | |
download | gpgme-f209ec8f581ae597b37f2e3a5e452e4b53b2d4c7.tar.gz gpgme-f209ec8f581ae597b37f2e3a5e452e4b53b2d4c7.zip |
Qt: Add encryption test and refactor testsuite
* lang/qt/tests/Makefile.am: Add t-encrypt and t-support.
* lang/qt/tests/t-support.cpp, lang/qt/tests/t-support.c (QGpgMETest):
New. Class to handle common cleanup / init.
* lang/qt/tests/t-keylist.cpp,
lang/qt/tests/t-keylocate.cpp,
lang/qt/tests/t-ownertrust.cpp,
lang/qt/tests/t-tofuinfo.cpp: Inherit QGpgMETest.
* lang/qt/tests/t-encrypt.cpp: New. Test Symetric and Asymectric
encryption. Mixed encryption test is disabled.
Diffstat (limited to 'lang/qt/tests/t-tofuinfo.cpp')
-rw-r--r-- | lang/qt/tests/t-tofuinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/qt/tests/t-tofuinfo.cpp b/lang/qt/tests/t-tofuinfo.cpp index f9634b28..83310921 100644 --- a/lang/qt/tests/t-tofuinfo.cpp +++ b/lang/qt/tests/t-tofuinfo.cpp @@ -55,7 +55,7 @@ static const char testMsg1[] = "=Crq6\n" "-----END PGP MESSAGE-----\n"; -class TofuInfoTest: public QObject +class TofuInfoTest: public QGpgMETest { Q_OBJECT @@ -216,8 +216,8 @@ private /* FIXME Disabled until GnuPG-Bug-Id 2405 is fixed Q_SLOTS */: void initTestCase() { + QGpgMETest::initTestCase(); const QString gpgHome = qgetenv("GNUPGHOME"); - QVERIFY2(!gpgHome.isEmpty(), "GNUPGHOME environment variable is not set."); qputenv("GNUPGHOME", mDir.path().toUtf8()); Q_ASSERT(mDir.isValid()); QFile conf(mDir.path() + QStringLiteral("/gpg.conf")); |