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

Qi Liang Liang.Qi at digia.com
Tue Jan 7 07:18:19 CET 2014


Looks like it's a qml plugin, then maybe there is an example/practice in qtquickcontrols.

https://github.com/qtproject/qtquickcontrols/blob/stable/tests/auto/auto.pro
https://github.com/qtproject/qtquickcontrols/tree/stable/tests/auto/testplugin
https://github.com/qtproject/qtquickcontrols/blob/stable/tests/auto/controls/controls.pro

controls is using the plugin from testplugin, but controls is a qmltest here.

Regards,
Liang

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

Hi,

Qt Positioning and Qt Location use moc plugins in various test cases. These
tests run fine locally with a developer build of Qt but fail when run in the
CI system. From what it looks like this is because the moc plugins are not
installed and cannot be loaded, see integration failure in [1].

The moc plugins are built under the top-level tests project which is not
installed by default. My question is what is the recommended approach to
ensure that moc plugins are loadable when running tests in the CI system?

[1] https://codereview.qt-project.org/73984



More information about the Development mailing list