Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-04-24 12:50:24 +0200
committerMartin Hořeňovský2022-04-24 13:31:28 +0200
commitc65e5b6514211d0d227d91527d2f1e5f5d5db2cb (patch)
tree981eccdbf715da635e8d0d7ceae42e55d587cff5 /tests
parent880285b433e90fc8d757cb65217016914b139196 (diff)
downloadcatch3-c65e5b6514211d0d227d91527d2f1e5f5d5db2cb.tar.gz
Add 'uses-python' label to tests using Python
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt11
-rw-r--r--tests/ExtraTests/CMakeLists.txt12
2 files changed, 22 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 627928f1..431dae65 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -302,6 +302,7 @@ set_tests_properties(ApprovalTests
FAIL_REGULAR_EXPRESSION "Results differed"
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
+ LABELS "uses-python"
)
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}
${CATCH_DIR}/tests/TestScripts/testRandomOrder.py $<TARGET_FILE:SelfTest>)
-
+set_tests_properties(RandomTestOrdering
+ PROPERTIES
+ LABELS "uses-python"
+)
add_test(NAME CheckConvenienceHeaders
COMMAND
${PYTHON_EXECUTABLE} ${CATCH_DIR}/tools/scripts/checkConvenienceHeaders.py
)
+set_tests_properties(CheckConvenienceHeaders
+ PROPERTIES
+ LABELS "uses-python"
+)
add_test(NAME "Benchmarking::SkipBenchmarkMacros"
COMMAND
@@ -530,6 +538,7 @@ if (CATCH_ENABLE_CONFIGURE_TESTS)
set_tests_properties("CMakeConfig::${testName}"
PROPERTIES
COST 240
+ LABELS "uses-python"
)
endforeach()
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt
index fe1eb83d..0b72bbfb 100644
--- a/tests/ExtraTests/CMakeLists.txt
+++ b/tests/ExtraTests/CMakeLists.txt
@@ -13,6 +13,10 @@ add_test(
NAME TestShardingIntegration
COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tests/TestScripts/testSharding.py $<TARGET_FILE:SelfTest>
)
+set_tests_properties(TestShardingIntegration
+ PROPERTIES
+ LABELS "uses-python"
+)
add_test(
NAME TestSharding::OverlyLargeShardIndex
@@ -128,6 +132,10 @@ add_test(NAME CATCH_CONFIG_BAZEL_REPORTER-1
COMMAND
"${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,
@@ -214,6 +222,10 @@ add_test(
NAME 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)
target_link_libraries(BenchmarksInCumulativeReporter PRIVATE Catch2::Catch2WithMain)