diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-07-10 16:29:38 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-11 17:03:53 +0200 |
commit | c955dcea2df9378a45d53d5556a1f726bcf05306 (patch) | |
tree | 3fdf45b683e653157558ac111eed40104155af67 /tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp | |
parent | a2bab88a3c5fa89580031d2cee62c67c943dca9d (diff) | |
download | qtlocation-c955dcea2df9378a45d53d5556a1f726bcf05306.tar.gz |
Fix autotests while shadow building with install path
These tests require test plugins which must be installed. However
the CI does not run "make install" when shadow building with install path.
Subsequently the plugins are not found.
We add the plugin path of the shadow build dir to the library path
enabling the various plugin loader cases to find the required plugin
binaries.
Change-Id: I4df21278f3e28db01b3062b27ccc317ccbab3142
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alex <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp')
-rw-r--r-- | tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp b/tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp index 5960f7ea..0cc9d329 100644 --- a/tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp +++ b/tests/auto/qgeocodingmanager/tst_qgeocodingmanager.cpp @@ -48,6 +48,11 @@ QT_USE_NAMESPACE void tst_QGeocodingManager::initTestCase() { + /* + * Set custom path since CI doesn't install test plugins + */ + QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + + QStringLiteral("/../../../plugins")); tst_QGeocodingManager::loadGeocodingManager(); } |