From be948f1fd06aa8ec290af36bc50bbbc6935bb9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 10 Apr 2022 21:55:52 +0200 Subject: [PATCH] Add COST property to the CMakeConfig tests --- tests/CMakeLists.txt | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 46294c3e..77189d6f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -508,22 +508,19 @@ set_tests_properties("Colours::ColourModeCanBeExplicitlySetToAnsi" ) if (CATCH_ENABLE_CONFIGURE_TESTS) - add_test(NAME "CMakeConfig::DefaultReporter" - COMMAND - "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureDefaultReporter.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" - ) - add_test(NAME "CMakeConfig::Disable" - COMMAND - "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureDisable.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" - ) - add_test(NAME "CMakeConfig::DisableStringification" - COMMAND - "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureDisableStringification.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" - ) - add_test(NAME "CMakeConfig::ExperimentalRedirect" - COMMAND - "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureExperimentalRedirect.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" - ) + foreach(testName "DefaultReporter" "Disable" "DisableStringification" + "ExperimentalRedirect") + + add_test(NAME "CMakeConfig::${testName}" + COMMAND + "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigure${testName}.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" + ) + set_tests_properties("CMakeConfig::${testName}" + PROPERTIES + COST 240 + ) + + endforeach() endif() if (CATCH_USE_VALGRIND)