mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Tests: Removed unused LABELS on CMake's own tests
In commit44ad3f0b7f(ctest: Support multiple -L and -LE options to mean "AND", 2021-03-20, v3.21.0-rc1~424^2) we added several labels to CMake's own tests, perhaps as a way to demonstrate the change made by the commit. However, they have not been maintained or added to other tests they cover. Since commit49e9f817de(ctest: Display test labels in failure summary, 2024-06-14) the labels are displayed next to failed test names, making them more visible. Remove these unnecessary labels.
This commit is contained in:
@@ -7,7 +7,6 @@ macro(AddCMakeTest TestName PreArgs)
|
||||
add_test(NAME CMake.${TestName}
|
||||
COMMAND ${CMAKE_EXECUTABLE} ${PreArgs}
|
||||
-P "${CMAKE_CURRENT_BINARY_DIR}/${TestName}Test.cmake" ${ARGN})
|
||||
set_tests_properties("CMake.${TestName}" PROPERTIES LABELS "CMake;command")
|
||||
endmacro()
|
||||
|
||||
|
||||
|
||||
@@ -47,9 +47,7 @@ ADD_AUTOGEN_TEST(UnityMocSource)
|
||||
|
||||
if(QT_TEST_ALLOW_QT_MACROS)
|
||||
ADD_AUTOGEN_TEST(MocCMP0071)
|
||||
set_property(TEST "Qt${QT_TEST_VERSION}Autogen.MocCMP0071" APPEND PROPERTY LABELS "policy")
|
||||
ADD_AUTOGEN_TEST(MocCMP0100)
|
||||
set_property(TEST "Qt${QT_TEST_VERSION}Autogen.MocCMP0100" APPEND PROPERTY LABELS "policy")
|
||||
ADD_AUTOGEN_TEST(MocInclude)
|
||||
ADD_AUTOGEN_TEST(MocIncludeSymlink)
|
||||
ADD_AUTOGEN_TEST(MocSkipSource)
|
||||
|
||||
@@ -35,10 +35,6 @@ macro(add_RunCMake_test test)
|
||||
${TEST_ARGS}
|
||||
-P "${CMAKE_CURRENT_SOURCE_DIR}/${Test_Dir}/RunCMakeTest.cmake"
|
||||
)
|
||||
set_tests_properties("RunCMake.${test}" PROPERTIES LABELS "CMake;run")
|
||||
if(${test} MATCHES ^CMP)
|
||||
set_property(TEST "RunCMake.${test}" APPEND PROPERTY LABELS "policy")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
function(add_RunCMake_test_group test types)
|
||||
|
||||
Reference in New Issue
Block a user