d8f814cdb7
Before this change, tests were never built for cross-compiling configurations. Add instructions that build and run tests for qemu configurations. This required a bit of abstraction / indirection to find out what's the path to the correct qt-cmake call, as well as prepending the correct env prefix to each call (either the host one or the target one). Also, the QEMU configuration requires a few environment variables to pick up the correct runtime linker and which qpa plugin to use for running tests. Finally, make sure the tests are not built and run if the DisableTests feature is set in the configuration. Task-number: QTBUG-84423 Change-Id: I0cec28c801a657e67cfa48f3c61cfe487109946b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
15 lines
400 B
YAML
15 lines
400 B
YAML
type: Group
|
|
instructions:
|
|
- type: Group
|
|
instructions:
|
|
- type: EnvironmentVariable
|
|
variableName: QEMU_LD_PREFIX
|
|
variableValue: "{{.Env.QT_SYSROOT_FOR_RUNNING_TESTS}}"
|
|
- type: EnvironmentVariable
|
|
variableName: QT_QPA_PLATFORM
|
|
variableValue: "offscreen"
|
|
enable_if:
|
|
condition: property
|
|
property: target.osVersion
|
|
equals_value: QEMU
|