qt5base-lts/coin/instructions/coin_module_test_qemu_env_vars.yaml
Alexandru Croitor d8f814cdb7 CMake: Add instructions for building and testing qemu configs
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>
2020-06-25 14:11:56 +02:00

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