Allow tests to be disabled

Ensure that we still build the tests but they don't run.
This commit is contained in:
Rodrigo Arias 2023-04-14 11:20:33 +02:00 committed by Rodrigo Arias Mallo
parent 49f915fda5
commit bc513832a5

View File

@ -53,7 +53,7 @@ function(unit_test source)
endfunction(unit_test)
function(ovni_test source)
set(switches MP SHOULD_FAIL SORT UNIT BREAKDOWN)
set(switches MP SHOULD_FAIL SORT UNIT BREAKDOWN DISABLED)
set(single NPROC REGEX NAME)
set(multi ENV)
@ -155,4 +155,8 @@ function(ovni_test source)
RUN_SERIAL TRUE
ENVIRONMENT "${OVNI_TEST_ENV}"
WORKING_DIRECTORY "${OVNI_TEST_BUILD_DIR}")
if(OVNI_TEST_DISABLED)
set_property(TEST "${OVNI_TEST_NAME}" PROPERTY DISABLED TRUE)
endif()
endfunction(ovni_test)