path: root/coin/instructions/coin_module_test_template_v3.yaml
diff options
authorAlexandru Croitor <>2020-07-01 18:14:41 +0200
committerAlexandru Croitor <>2020-07-03 11:14:11 +0200
commit0423814a2fc12f94e82b1f7d9508481dbb09189d (patch)
tree956838fe3a7d60aeda09105220a7933b58cf0df4 /coin/instructions/coin_module_test_template_v3.yaml
parent939f5112a1033299ec1a178fbd4232717a98e735 (diff)
CMake: Add support for enforcing passing CI tests per repository
Create a new test instructions yaml template that does not ignore the exit code of running tests. This template can be included by repositories where tests pass in all configurations tested by the CI. The template should be included in module_config.yaml via Test: - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml" This allows us to opt into enforcing test runs per repository, rather than waiting to fix all tests in all qt5.git repositories. Implementation notes Try to extract the common parts of the instructions as much as possible to avoid duplication. Unfortunately some duplication still remains due to the restricted yaml language supported by Coin. Add a short file that describes the differences between the existing templates. The v2 non-enforcing test template should probably be removed in the future. Task-number: QTBUG-84886 Task-number: QTBUG-85364 Change-Id: I718fc3cb44d6aefdbebc2fd2088a910a8095a375 Reviewed-by: Joerg Bornemann <>
Diffstat (limited to 'coin/instructions/coin_module_test_template_v3.yaml')
1 files changed, 25 insertions, 0 deletions
diff --git a/coin/instructions/coin_module_test_template_v3.yaml b/coin/instructions/coin_module_test_template_v3.yaml
new file mode 100644
index 0000000000..9984305a03
--- /dev/null
+++ b/coin/instructions/coin_module_test_template_v3.yaml
@@ -0,0 +1,25 @@
+type: Group
+ - type: Group
+ instructions:
+ - !include "{{qt/qtbase}}/coin_module_test_template_common.yaml"
+ - type: Group
+ instructions:
+ - !include "{{qt/qtbase}}/cmake_regular_test_instructions_enforced.yaml"
+ enable_if:
+ condition: or
+ conditions:
+ - condition: property
+ property: host.os
+ equals_property: target.os
+ - condition: property
+ property: target.osVersion
+ equals_value: QEMU
+ disable_if:
+ condition: property
+ property: features
+ contains_value: DisableTests
+ - type: EnvironmentVariable
+ variableName: Dummy
+ variableValue: dummy