Add COST property to the CMakeConfig tests

This commit is contained in:
Martin Hořeňovský 2022-04-10 21:55:52 +02:00
parent 4e006a93ff
commit be948f1fd0
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -508,22 +508,19 @@ set_tests_properties("Colours::ColourModeCanBeExplicitlySetToAnsi"
) )
if (CATCH_ENABLE_CONFIGURE_TESTS) if (CATCH_ENABLE_CONFIGURE_TESTS)
add_test(NAME "CMakeConfig::DefaultReporter" foreach(testName "DefaultReporter" "Disable" "DisableStringification"
COMMAND "ExperimentalRedirect")
"${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureDefaultReporter.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
) add_test(NAME "CMakeConfig::${testName}"
add_test(NAME "CMakeConfig::Disable" COMMAND
COMMAND "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigure${testName}.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
"${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureDisable.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" )
) set_tests_properties("CMakeConfig::${testName}"
add_test(NAME "CMakeConfig::DisableStringification" PROPERTIES
COMMAND COST 240
"${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureDisableStringification.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" )
)
add_test(NAME "CMakeConfig::ExperimentalRedirect" endforeach()
COMMAND
"${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/TestScripts/testConfigureExperimentalRedirect.py" "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
)
endif() endif()
if (CATCH_USE_VALGRIND) if (CATCH_USE_VALGRIND)