1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

ctest: do not fail test on failed test submission

This commit is contained in:
Anonymous Maarten 2018-02-13 13:58:37 +01:00 committed by Daniel Evans
parent af7b84637d
commit f23304dfcc
3 changed files with 17 additions and 1 deletions

View File

@ -156,5 +156,5 @@ if(_NB_BUILD_ERRORS)
endif()
if(_TEST_RESULT)
list(APPEND ERROR_MESSAGES "Test failure detected!")
list(APPEND WARNING_MESSAGES "Test failure detected!")
endif()

View File

@ -31,6 +31,7 @@ else()
message(FATAL_ERROR "Unknown CMAKE_SYSTEM_NAME detected '${CMAKE_SYSTEM_NAME}'")
endif()
set(WARNING_MESSAGES)
set(ERROR_MESSAGES)
set(SEPARATE_TEST_SUITES FALSE)
@ -56,6 +57,13 @@ set(RUN_TESTS FALSE)
include("${CTEST_SCRIPT_DIRECTORY}/build.ctest")
if(WARNING_MESSAGES)
foreach(WARNING_MESSAGE ${WARNING_MESSAGES})
message(WARNING "${WARNING_MESSAGE}")
endforeach()
message(WARNING "Warning(s) detected")
endif()
if(ERROR_MESSAGES)
foreach(ERROR_MESSAGE ${ERROR_MESSAGES})
message(SEND_ERROR "${ERROR_MESSAGE}")

View File

@ -30,6 +30,7 @@ else()
message(FATAL_ERROR "Unknown CMAKE_SYSTEM_NAME detected '${CMAKE_SYSTEM_NAME}'")
endif()
set(WARNING_MESSAGES)
set(ERROR_MESSAGES)
set(SEPARATE_TEST_SUITES TRUE)
@ -54,6 +55,13 @@ set(RUN_TESTS TRUE)
include("${CTEST_SCRIPT_DIRECTORY}/build.ctest")
if(WARNING_MESSAGES)
foreach(WARNING_MESSAGE ${WARNING_MESSAGES})
message(WARNING "${WARNING_MESSAGE}")
endforeach()
message(WARNING "Warning(s) detected")
endif()
if(ERROR_MESSAGES)
foreach(ERROR_MESSAGE ${ERROR_MESSAGES})
message(SEND_ERROR "${ERROR_MESSAGE}")