diff options
author | Andre Heinecke <[email protected]> | 2016-04-11 15:46:03 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-04-11 15:46:03 +0000 |
commit | d9f7a18ed88127e7f05d770d55118d1e928f3b3f (patch) | |
tree | f16069e8e559da981ced228015865ec12520f276 /lang/qt/tests/t-keylist.cpp | |
parent | Qt: Remove remaining boost usage (diff) | |
download | gpgme-d9f7a18ed88127e7f05d770d55118d1e928f3b3f.tar.gz gpgme-d9f7a18ed88127e7f05d770d55118d1e928f3b3f.zip |
Qt: Fix unit test by adding initial.test dep
* lang/qt/tests/t-keylist.cpp: Verify that GNUPGHOME is set.
* lang/qt/tests/initial.test: New dummy test.
* lang/qt/tests/Makefile.am: Add dependency to initial.test
--
Feels weird but this follows the pattern in tests/gpg/Makefile.am
and solves the problem that the environment is dirty.
Diffstat (limited to 'lang/qt/tests/t-keylist.cpp')
-rw-r--r-- | lang/qt/tests/t-keylist.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp index 626d0a7f..8aa59990 100644 --- a/lang/qt/tests/t-keylist.cpp +++ b/lang/qt/tests/t-keylist.cpp @@ -23,6 +23,12 @@ private Q_SLOTS: const QString kId = QLatin1String(keys.front().keyID()); Q_ASSERT (kId == QStringLiteral("2D727CC768697734")); } + + void initTestCase() + { + const QString gpgHome = qgetenv("GNUPGHOME"); + QVERIFY2(!gpgHome.isEmpty(), "GNUPGHOME environment variable is not set."); + } }; QTEST_MAIN(KeyListTest) |