diff options
author | Ingo Klöcker <[email protected]> | 2021-12-14 10:04:03 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2021-12-14 10:04:03 +0000 |
commit | 3a43d9dc67970db323c3e49eb964d52c4eb3ac6c (patch) | |
tree | c6afd9a747334ac8361396168b01262125f20e3d /lang/qt/tests/t-support.cpp | |
parent | core: Allow specifiying a key origin when importing keys (diff) | |
download | gpgme-3a43d9dc67970db323c3e49eb964d52c4eb3ac6c.tar.gz gpgme-3a43d9dc67970db323c3e49eb964d52c4eb3ac6c.zip |
qt,tests: Skip WKD lookup tests by default
* lang/qt/tests/t-support.cpp, lang/qt/tests/t-support.h
(class QGpgMETest): Add member function doOnlineTests.
* lang/qt/tests/t-wkdlookup.cpp (testWKDLookupAsync, testWKDLookupSync,
testLookupWithNoResultAsync): Skip tests if online tests are not
enabled.
--
GnuPG-bug-id: 5728
Diffstat (limited to 'lang/qt/tests/t-support.cpp')
-rw-r--r-- | lang/qt/tests/t-support.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/qt/tests/t-support.cpp b/lang/qt/tests/t-support.cpp index 7b16ccc3..854dd7bd 100644 --- a/lang/qt/tests/t-support.cpp +++ b/lang/qt/tests/t-support.cpp @@ -59,6 +59,12 @@ void QGpgMETest::cleanupTestCase() killAgent(); } +// static +bool QGpgMETest::doOnlineTests() +{ + return !qgetenv("DO_ONLINE_TESTS").isEmpty(); +} + bool QGpgMETest::copyKeyrings(const QString &src, const QString &dest) { bool is21dir = QFileInfo(src + QDir::separator() + QStringLiteral("pubring.kbx")).exists(); |