diff options
author | Michal Klocek <michal.klocek@qt.io> | 2025-06-24 12:12:32 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2025-06-26 09:38:25 +0000 |
commit | 18952dd3f775622c624a6e44758223afaea42f0a (patch) | |
tree | 08395f853db05dbecd32ba75f802628477bda555 | |
parent | 5dac61ff6fd281f47f60ae419a9b4d4332e6d17d (diff) |
Run 'native' and 'webengine' tests on ci
On windows,linux and macos we have webenigne, therfore
we run the test suite with webengine backend.
If platform also supports 'native' plugin, run the tests
second time with native backend.
Pick-to: 6.10
Change-Id: Iee6cd7390f65154187715d36a9114432f5b7d7f6
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | coin/instructions/run_native_plugin_tests.yaml | 21 | ||||
-rw-r--r-- | coin/instructions/run_webengine_plugin_tests.yaml | 25 | ||||
-rw-r--r-- | coin/module_config.yaml | 19 |
3 files changed, 49 insertions, 16 deletions
diff --git a/coin/instructions/run_native_plugin_tests.yaml b/coin/instructions/run_native_plugin_tests.yaml new file mode 100644 index 0000000..d0e9e26 --- /dev/null +++ b/coin/instructions/run_native_plugin_tests.yaml @@ -0,0 +1,21 @@ +type: Group +enable_if: + condition: or + conditions: + - condition: property + property: target.os + equals_value: Windows + - condition: property + property: target.osVersion + equals_value: Android_ANY + - condition: property + property: target.os + equals_value: MacOS + - condition: property + property: target.os + equals_value: IOS +instructions: + - type: EnvironmentVariable + variableName: QT_WEBVIEW_PLUGIN + variableValue: native + - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml" diff --git a/coin/instructions/run_webengine_plugin_tests.yaml b/coin/instructions/run_webengine_plugin_tests.yaml new file mode 100644 index 0000000..13106a0 --- /dev/null +++ b/coin/instructions/run_webengine_plugin_tests.yaml @@ -0,0 +1,25 @@ +type: Group +enable_if: + condition: or + conditions: + - condition: property + property: target.os + equals_value: Windows + - condition: property + property: target.os + equals_value: MacOS + - condition: property + property: target.os + equals_value: Linux +instructions: + - type: EnvironmentVariable + variableName: QTWEBENGINE_DISABLE_SANDBOX + variableValue: "1" + enable_if: + condition: property + property: target.osVersion + equals_value: QEMU + - type: EnvironmentVariable + variableName: QT_WEBVIEW_PLUGIN + variableValue: webengine + - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml" diff --git a/coin/module_config.yaml b/coin/module_config.yaml index e8e6e60..c54be0b 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -12,19 +12,6 @@ instructions: - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml" Test: - - type: EnvironmentVariable - variableName: QTWEBENGINE_DISABLE_SANDBOX - variableValue: "1" - enable_if: - condition: property - property: target.osVersion - equals_value: QEMU - - type: Group - instructions: - - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml" - - !include "{{qt/qtbase}}/coin_module_test_docs.yaml" - enable_if: - condition: property - property: target.os - not_equals_value: QNX - + - !include "{{qt/qtwebview}}/run_native_plugin_tests.yaml" + - !include "{{qt/qtwebview}}/run_webengine_plugin_tests.yaml" + - !include "{{qt/qtbase}}/coin_module_test_docs.yaml" |