From d466b6deaf4d7a653c3f66a5d0bf2be3539b52ca Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Fri, 13 Sep 2024 15:55:11 +0200 Subject: [PATCH] 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 --- coin/instructions/cmake_run_ctest.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/coin/instructions/cmake_run_ctest.yaml b/coin/instructions/cmake_run_ctest.yaml index af996fc57ed..47105a9c9c7 100644 --- a/coin/instructions/cmake_run_ctest.yaml +++ b/coin/instructions/cmake_run_ctest.yaml @@ -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"