[Qbs] tst_blackbox-qt fails
Christian.Kandeler at qt.io
Wed Jan 30 14:24:15 CET 2019
On Wed, 30 Jan 2019 07:20:30 +0100
Richard Weickelt <richard at weickelt.de> wrote:
> >> This is how I build and test now:
> >> qbs build profile:qt
> >> qbs run -p qbs_app profile:qt -- setup-toolchains --detect
> >> qbs run -p qbs_app profile:qt -- setup-qt
> >> /usr/local/Qt/5.9.7/gcc_64/bin/qmake qt
> >> QBS_AUTOTEST_PROFILE=qt qbs build -p autotest-runner profile:qt
> >> Is this how it is supposed to be done?
> > > Looks fine to me.
Correction: Unless you explicitly re-resolve, qbs always uses the environment stored in the build graph. So either you set QBS_AUTOTEST_PROFILE before doing the initial build, or you re-resolve before "building" the autotest runner:
$ QBS_AUTOTEST_PROFILE=qt qbs resolve
$ qbs build -p autotest-runner profile:qt
> 3. How about adding a property "runEnvironment" to QbsAutotest that would
> to set the profile on the command line when building
> autotest-runner? Those variables would be appended to
> qbs.commonRunEnvironment in the product.
More information about the Qbs