[Development] Loading moc plugins when running tests in CI system

Qi Liang Liang.Qi at digia.com
Tue Jan 7 10:44:16 CET 2014


I thought you are talking about sth like qtlocation/tests/plugins/declarativetestplugin .

If those mock plugins are only for (auto) tests, please move them into tests/auto directory. They will be got built when running auto tests.

If they are cpp plugin, maybe could load those plugins in hard code like
https://github.com/qtproject/qtbase/blob/stable/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp

I guess Thiago and Oswald will have better suggestion here.

Regards,
Liang

________________________________________
From: Aaron McCarthy
Sent: Tuesday, January 07, 2014 8:38 AM
To: development at qt-project.org
Subject: Re: [Development] Loading moc plugins when running tests in CI system

On Tue, 7 Jan 2014 06:18:19 Qi Liang wrote:
> Looks like it's a qml plugin, then maybe there is an example/practice in
> qtquickcontrols.

They are not a QML plugin, they are position and geoservices plugins that
happen to have qml in there names for some reason.

> https://github.com/qtproject/qtquickcontrols/blob/stable/tests/auto/auto.pro
> https://github.com/qtproject/qtquickcontrols/tree/stable/tests/auto/testplu
> gin
> https://github.com/qtproject/qtquickcontrols/blob/stable/tests/auto/control
> s/controls.pro
>
> controls is using the plugin from testplugin, but controls is a qmltest
> here.

I see from the logs that the build step the plugins are located in
/home/qt/shadowbuild/qtlocation/plugins/geoservices and
/home/qt/shadowbuild/qtlocation/plugins/position

Is it possible to set QT_PLUGIN_PATH=/home/qt/shadowbuild/qtlocation/plugins
during test runs?



More information about the Development mailing list