Commit 939d26eb authored by Emmanuel Promayon's avatar Emmanuel Promayon

UPDATED always show disabled test

When tests are disable due to failing requirement, use of a STATUS
message makes sure that the message is printed to the cmake output
(AUTHOR_WARNING messages are meant for the CMakeLists.txt author
and are masked if the -Wdev is not givent to cmake during generation)
parent 62fb98af
#!
#! @ingroup group_sdk_cmake_camitk_test
#!
#! camitk_disable_tests is a macro to disable one or more tests unconditionally.
#! camitk_disable_tests is a macro to unconditionally disable one or more tests.
#!
#! It encapsulates CMake set_tests_properties in order to manage version older that CMake 3.9
#! and to force the developper to give a (good) reason for bypassing tests.
......@@ -59,6 +59,6 @@ macro(camitk_disable_tests)
endif()
endforeach()
set(DISABLE_MESSAGE ${DISABLE_MESSAGE} " Reason: ${CAMITK_DISABLE_TESTS_REASON}\n")
message(AUTHOR_WARNING ${DISABLE_MESSAGE})
message(STATUS ${DISABLE_MESSAGE})
endmacro()
......@@ -183,7 +183,7 @@ macro(camitk_tests_requirement)
endforeach()
set(DISABLE_MESSAGE ${DISABLE_MESSAGE} " Reason: ${CAMITK_TESTS_REQUIREMENT_REASON}\n")
set(DISABLE_MESSAGE ${DISABLE_MESSAGE} " Requirement statement unmet: ${CAMITK_TESTS_REQUIREMENT_REQUIRES}.\n")
message(AUTHOR_WARNING ${DISABLE_MESSAGE})
message(STATUS ${DISABLE_MESSAGE})
else()
string(REPLACE ";" " " CAMITK_TESTS_REQUIREMENT_TESTS_STRING "${CAMITK_TESTS_REQUIREMENT_TESTS}")
message(STATUS "Test requirement \"${CAMITK_TESTS_REQUIREMENT_REQUIRES}\": Passed\n Enabled tests: ${CAMITK_TESTS_REQUIREMENT_TESTS_STRING}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment