summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2024-02-07 15:11:04 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2024-03-04 20:14:36 +0100
commit7684814b8b01bb8b1326be380d2d7f45f775d24a (patch)
tree0d34c0083a7592db0c8325ae4a6b4b0fa8ded946 /coin
parent3f26fdebbc75ceb30bd15bf4ef0059aea04c96c4 (diff)
Coin: Set COIN_CROSS_PLATFORM_VERSION_TEST environment variable
We have certain platforms where we build on one OS version (the latest) and then test on an older version. macOS is an example of such a platform. Set the COIN_CROSS_PLATFORM_VERSION_TEST environment variable to true for such platforms. They usually have a dependency on the main OS version and are marked with the TestOnly feature. This is useful information that can be used by CMake build tests in order to skip those that do not account for the difference in OS versions. Change-Id: I6eeeac98abe6beb00ce431e17589f8e093ed23e4 Reviewed-by: Toni Saario <toni.saario@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'coin')
-rw-r--r--coin/instructions/cmake_run_ctest_enforce_exit_code.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
index 4d5d25a240..a7039b5015 100644
--- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
+++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
@@ -88,6 +88,22 @@ instructions:
- !include "{{qt/qtbase}}/coin_module_test_android_start_emulator.yaml"
+ - type: EnvironmentVariable
+ variableName: COIN_CROSS_PLATFORM_VERSION_TEST
+ variableValue: "TRUE"
+ enable_if:
+ condition: and
+ conditions:
+ - condition: property
+ property: platformDependency
+ not_equals_value: null
+ - condition: property
+ property: platformDependency.target.osVersion
+ not_equals_property: target.osVersion
+ - condition: property
+ property: features
+ contains_value: TestOnly
+
- type: ExecuteCommand
command: "{{.Env.TESTS_ENV_PREFIX}} ctest {{.Env.CTEST_ARGS}}"
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution