changed: remove ADD_DISABLED_CTEST option
a disabled test is disabled. end of story.
This commit is contained in:
parent
1c6e5f5099
commit
1edf46ffd1
@ -1,8 +1,5 @@
|
|||||||
# - Build satellites that are dependent of main library
|
# - Build satellites that are dependent of main library
|
||||||
|
|
||||||
option(ADD_DISABLED_CTESTS "Add the tests which are disabled due to failed preconditions to the ctest output (this makes ctest return an error if such a test is present)" ON)
|
|
||||||
mark_as_advanced(ADD_DISABLED_CTESTS)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enumerate all source code in a "satellite" directory such as tests/,
|
# Enumerate all source code in a "satellite" directory such as tests/,
|
||||||
# compile each of them and optionally set them as a test for CTest to
|
# compile each of them and optionally set them as a test for CTest to
|
||||||
@ -366,13 +363,6 @@ macro(opm_add_test TestName)
|
|||||||
endif()
|
endif()
|
||||||
add_dependencies(test-suite "${CURTEST_EXE_NAME}")
|
add_dependencies(test-suite "${CURTEST_EXE_NAME}")
|
||||||
endif()
|
endif()
|
||||||
else() # test is skipped
|
|
||||||
# the following causes the test to appear as 'skipped' in the
|
|
||||||
# CDash dashboard. it this is removed, the test is just silently
|
|
||||||
# ignored.
|
|
||||||
if (NOT CURTEST_ONLY_COMPILE AND ADD_DISABLED_CTESTS)
|
|
||||||
add_test(${_FANCY} skip_test_dummy)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user