aboutsummaryrefslogtreecommitdiffstats
path: root/qbs-resources
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2018-02-16 10:33:23 -0800
committerJake Petroules <jake.petroules@qt.io>2018-02-19 09:32:05 +0000
commit70206df40307cb8b09306638966a19ca03313cf8 (patch)
treec25efdbec7e6c608ce923156a2b253a08d21312e /qbs-resources
parenta5e127d703bc813a4e1828ca91fca02508915494 (diff)
Run autotests using the qbs from the install root if available
...as opposed to relying on the qbs binary existing in the same directory as the test binaries and being usable from that location. This is necessary for some generators (as they generate projects which call the same qbs binary as they were generated with) where an invocation on the qbs binary in the non-installed location may fail to find dependent libraries when invoked from an outside environment. Change-Id: I4d35a6f70df3ad4c48b202f73399ffe1704f78ca Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'qbs-resources')
-rw-r--r--qbs-resources/imports/QbsAutotest.qbs3
1 files changed, 3 insertions, 0 deletions
diff --git a/qbs-resources/imports/QbsAutotest.qbs b/qbs-resources/imports/QbsAutotest.qbs
index 25720354e..307bfe836 100644
--- a/qbs-resources/imports/QbsAutotest.qbs
+++ b/qbs-resources/imports/QbsAutotest.qbs
@@ -30,4 +30,7 @@ QtApplication {
]
}
cpp.rpaths: [FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix, qbsbuildconfig.libDirName)]
+ qbs.commonRunEnvironment: ({
+ "QBS_INSTALL_ROOT": qbs.installRoot
+ })
}