summaryrefslogtreecommitdiff
path: root/tests/auto/qplacemanager
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-07-10 16:29:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-11 17:03:53 +0200
commitc955dcea2df9378a45d53d5556a1f726bcf05306 (patch)
tree3fdf45b683e653157558ac111eed40104155af67 /tests/auto/qplacemanager
parenta2bab88a3c5fa89580031d2cee62c67c943dca9d (diff)
downloadqtlocation-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/qplacemanager')
-rw-r--r--tests/auto/qplacemanager/tst_qplacemanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qplacemanager/tst_qplacemanager.cpp b/tests/auto/qplacemanager/tst_qplacemanager.cpp
index 14793974..f3322748 100644
--- a/tests/auto/qplacemanager/tst_qplacemanager.cpp
+++ b/tests/auto/qplacemanager/tst_qplacemanager.cpp
@@ -85,6 +85,11 @@ private:
void tst_QPlaceManager::initTestCase()
{
+ /*
+ * Set custom path since CI doesn't install test plugins
+ */
+ QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()
+ + QStringLiteral("/../../../plugins"));
provider = 0;
QStringList providers = QGeoServiceProvider::availableServiceProviders();