From bc513832a58c5c18c4c37a9d1b24ae254ceaf21a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 14 Apr 2023 11:20:33 +0200 Subject: [PATCH] Allow tests to be disabled Ensure that we still build the tests but they don't run. --- test/macros.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/macros.cmake b/test/macros.cmake index f2e8201..5e879bc 100644 --- a/test/macros.cmake +++ b/test/macros.cmake @@ -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)