Commit 9fe45a19 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Add option to enable broken tests

Making it easy to run all tests hopefully leads to more people fixing
them.
parent 884ebac4
......@@ -156,6 +156,10 @@ add_feature_info("Safe Asserts" HIDE_SAFE_ASSERTS "Don't show message box for \"
option(FOUNDATION_BUILD "A Foundation build is a binary release build that can package some extra things like color themes. Linux distributions that build and install Krita into a default system location should not define this option to true." OFF)
add_feature_info("Foundation Build" FOUNDATION_BUILD "A Foundation build is a binary release build that can package some extra things like color themes. Linux distributions that build and install Krita into a default system location should not define this option to true.")
option(KRITA_ENABLE_BROKEN_TESTS "Enable tests that are marked as broken" OFF)
add_feature_info("Enable Broken Tests" KRITA_ENABLE_BROKEN_TESTS "Runs broken test when \"make test\" is invoked (use -DKRITA_ENABLE_BROKEN_TESTS=ON to enable).")
include(MacroJPEG)
########################
......
......@@ -36,8 +36,12 @@ function(KRITA_ADD_BROKEN_UNIT_TEST)
if(NOT ARG_GUI)
ecm_mark_nongui_executable(${_targetname})
endif()
# do not add it as test, so make test skips it!
# add_test(NAME ${_testname} COMMAND ${_targetname})
# do not add it as test, so make test skips it unless asked for it
if(KRITA_ENABLE_BROKEN_TESTS)
add_test(NAME ${_testname} COMMAND ${_targetname})
endif()
target_link_libraries(${_targetname} ${ARG_LINK_LIBRARIES})
ecm_mark_as_test(${_targetname})
if (ARG_TARGET_NAME_VAR)
......
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