From a1e7dbb04e8f4833cefe530dec029dd81ac9d25f Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 7 Oct 2022 11:26:32 +0200 Subject: [PATCH] Add SORT support in tests --- test/macros.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/macros.cmake b/test/macros.cmake index 575bb8d..c854745 100644 --- a/test/macros.cmake +++ b/test/macros.cmake @@ -4,7 +4,7 @@ include(CMakeParseArguments) function(ovni_test source) - set(switches MP SHOULD_FAIL) + set(switches MP SHOULD_FAIL SORT) set(single NPROC REGEX NAME) set(multi ENV) @@ -46,6 +46,10 @@ function(ovni_test source) list(APPEND OVNI_TEST_ENV "OVNI_CURRENT_DIR=${CMAKE_CURRENT_BINARY_DIR}") + if(OVNI_TEST_SORT) + list(APPEND OVNI_TEST_ENV "OVNI_DO_SORT=1") + endif() + add_executable("${OVNI_TEST_NAME}" "${OVNI_TEST_SOURCE}") target_link_libraries("${OVNI_TEST_NAME}" PRIVATE ovni)