Add 'uses-python' label to tests using Python

This commit is contained in:
Martin Hořeňovský 2022-04-24 12:50:24 +02:00
parent 880285b433
commit c65e5b6514
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 22 additions and 1 deletions

View File

@ -302,6 +302,7 @@ set_tests_properties(ApprovalTests
FAIL_REGULAR_EXPRESSION "Results differed" FAIL_REGULAR_EXPRESSION "Results differed"
COST 120 # We know that this is either the most, or second most, COST 120 # We know that this is either the most, or second most,
# expensive test in the test suite, so we give it high estimate for CI runs # expensive test in the test suite, so we give it high estimate for CI runs
LABELS "uses-python"
) )
add_test(NAME RegressionCheck-1670 COMMAND $<TARGET_FILE:SelfTest> "#1670 regression check" -c A -r compact) add_test(NAME RegressionCheck-1670 COMMAND $<TARGET_FILE:SelfTest> "#1670 regression check" -c A -r compact)
@ -352,12 +353,19 @@ set_tests_properties(TagAlias PROPERTIES
add_test(NAME RandomTestOrdering COMMAND ${PYTHON_EXECUTABLE} add_test(NAME RandomTestOrdering COMMAND ${PYTHON_EXECUTABLE}
${CATCH_DIR}/tests/TestScripts/testRandomOrder.py $<TARGET_FILE:SelfTest>) ${CATCH_DIR}/tests/TestScripts/testRandomOrder.py $<TARGET_FILE:SelfTest>)
set_tests_properties(RandomTestOrdering
PROPERTIES
LABELS "uses-python"
)
add_test(NAME CheckConvenienceHeaders add_test(NAME CheckConvenienceHeaders
COMMAND COMMAND
${PYTHON_EXECUTABLE} ${CATCH_DIR}/tools/scripts/checkConvenienceHeaders.py ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tools/scripts/checkConvenienceHeaders.py
) )
set_tests_properties(CheckConvenienceHeaders
PROPERTIES
LABELS "uses-python"
)
add_test(NAME "Benchmarking::SkipBenchmarkMacros" add_test(NAME "Benchmarking::SkipBenchmarkMacros"
COMMAND COMMAND
@ -530,6 +538,7 @@ if (CATCH_ENABLE_CONFIGURE_TESTS)
set_tests_properties("CMakeConfig::${testName}" set_tests_properties("CMakeConfig::${testName}"
PROPERTIES PROPERTIES
COST 240 COST 240
LABELS "uses-python"
) )
endforeach() endforeach()

View File

@ -13,6 +13,10 @@ add_test(
NAME TestShardingIntegration NAME TestShardingIntegration
COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tests/TestScripts/testSharding.py $<TARGET_FILE:SelfTest> COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tests/TestScripts/testSharding.py $<TARGET_FILE:SelfTest>
) )
set_tests_properties(TestShardingIntegration
PROPERTIES
LABELS "uses-python"
)
add_test( add_test(
NAME TestSharding::OverlyLargeShardIndex NAME TestSharding::OverlyLargeShardIndex
@ -128,6 +132,10 @@ add_test(NAME CATCH_CONFIG_BAZEL_REPORTER-1
COMMAND COMMAND
"${PYTHON_EXECUTABLE}" "${CATCH_DIR}/tests/TestScripts/testBazelReporter.py" $<TARGET_FILE:BazelReporter> "${CMAKE_CURRENT_BINARY_DIR}" "${PYTHON_EXECUTABLE}" "${CATCH_DIR}/tests/TestScripts/testBazelReporter.py" $<TARGET_FILE:BazelReporter> "${CMAKE_CURRENT_BINARY_DIR}"
) )
set_tests_properties(CATCH_CONFIG_BAZEL_REPORTER-1
PROPERTIES
LABELS "uses-python"
)
# The default handler on Windows leads to the just-in-time debugger firing, # The default handler on Windows leads to the just-in-time debugger firing,
@ -214,6 +222,10 @@ add_test(
NAME PartialTestCaseEvents NAME PartialTestCaseEvents
COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tests/TestScripts/testPartialTestCaseEvent.py $<TARGET_FILE:PartialTestCaseEvents> COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tests/TestScripts/testPartialTestCaseEvent.py $<TARGET_FILE:PartialTestCaseEvents>
) )
set_tests_properties(PartialTestCaseEvents
PROPERTIES
LABELS "uses-python"
)
add_executable(BenchmarksInCumulativeReporter ${TESTS_DIR}/X22-BenchmarksInCumulativeReporter.cpp) add_executable(BenchmarksInCumulativeReporter ${TESTS_DIR}/X22-BenchmarksInCumulativeReporter.cpp)
target_link_libraries(BenchmarksInCumulativeReporter PRIVATE Catch2::Catch2WithMain) target_link_libraries(BenchmarksInCumulativeReporter PRIVATE Catch2::Catch2WithMain)