summaryrefslogtreecommitdiffstats
path: root/coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-12 17:50:30 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-06-25 14:11:56 +0200
commitd8f814cdb7c56902665f95c3890c6ceaf069f0c2 (patch)
tree4472e8dea67f6baca1e34944c0aa71513af19dc4 /coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml
parent844e4f7b982f2622dbdce0c4b70775d5bd17f043 (diff)
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>
Diffstat (limited to 'coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml')
-rw-r--r--coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml b/coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml
new file mode 100644
index 0000000000..e2cdd15407
--- /dev/null
+++ b/coin/instructions/cmake_build_and_upload_test_artifacts_host.yaml
@@ -0,0 +1,15 @@
+type: Group
+instructions:
+ - type: Group
+ instructions:
+ - type: EnvironmentVariable
+ variableName: TESTS_ENV_PREFIX
+ variableValue: "{{.Env.ENV_PREFIX}}"
+ - type: EnvironmentVariable
+ variableName: INSTALL_DIR_FOR_CMAKE_TESTS
+ variableValue: "{{.InstallDir}}"
+ - !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts.yaml"
+ disable_if:
+ condition: property
+ property: features
+ contains_value: DisableTests