Enable ctest junit XML test summary for the ASAN configuration

The ASAN configuration runs on OpenSUSE and has the variable

  CMAKE_MIN_SUPPORTED_BIN_PATH=/opt/cmake-3.16.8/bin

because in the non-ASAN configuration it prepends this to PATH to test
functionality with old CMake.

In the ASAN configuration the above variable is still set, but it's not
prepended to PATH, so the latest CMake is used. We now detect that
properly and enable junit XML summary files.

Change-Id: I75f7308b9332434853cbe2a9878f7b4c192710e7
Reviewed-by: Toni Saario <toni.saario@qt.io>
This commit is contained in:
Dimitrios Apostolou 2024-09-13 15:55:11 +02:00
parent 1b5c6d0009
commit d466b6deaf

View File

@ -86,14 +86,19 @@ instructions:
property: features
contains_value: AbortTestingOnFirstFailure
# Enable CTest's JUnit XML summary only for recent versions
# Enable CTest's JUnit XML summary
- type: AppendToEnvironmentVariable
variableName: CTEST_ARGS
variableValue: " --output-junit {{.Env.COIN_CTEST_RESULTSDIR}}{{.Env.CI_PATH_SEP}}test_summary.ctest_junit_xml"
enable_if:
condition: runtime
env_var: CMAKE_MIN_SUPPORTED_BIN_PATH
equals_value: null
disable_if: # CMake < v3.21 does not support it
condition: and
conditions:
- condition: runtime
env_var: CMAKE_MIN_SUPPORTED_BIN_PATH
not_equals_value: null
- condition: runtime
env_var: PATH
contains_value: "{{.Env.CMAKE_MIN_SUPPORTED_BIN_PATH}}"
- !include "{{qt/qtbase}}/coin_module_test_android_start_emulator.yaml"