From ac44f114061c399b226e37b718fb5ad5fb2bbbdb Mon Sep 17 00:00:00 2001 From: ls232920 <laurent.soulier@cea.fr> Date: Thu, 12 Oct 2023 09:36:13 +0000 Subject: [PATCH] [UT] Use all unit-tests by default --- unit_tests/CMakeLists.txt | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 2c33b42f7..69f1269f2 100644 --- a/unit_tests/CMakeLists.txt +++ b/unit_tests/CMakeLists.txt @@ -8,19 +8,20 @@ FetchContent_Declare( FetchContent_MakeAvailable(Catch2) -#file(GLOB_RECURSE src_files "*.cpp") -set(src_files) -list(APPEND src_files "data/Test_Context.cpp") -list(APPEND src_files "graph/Test_Connector.cpp") -list(APPEND src_files "graph/Test_GraphView.cpp") -#MESSAGE(WARNING "Memory leak in graphMatching/Test_GRegex.cpp") -list(APPEND src_files "graphMatching/Test_GRegex.cpp") -list(APPEND src_files "graphMatching/Test_NodeRegex.cpp") -#MESSAGE(WARNING "Memory leak in graphMatching/Test_SeqStm.cpp") -list(APPEND src_files "graphMatching/Test_SeqStm.cpp") -#MESSAGE(WARNING "Memory leak in graphMatching/Test_StmFactory.cpp") -list(APPEND src_files "graphMatching/Test_StmFactory.cpp") -list(APPEND src_files "operator/Test_GenericOperator.cpp") +# Comment following line and uncomment the next ones to selectively activate tests +file(GLOB_RECURSE src_files "*.cpp") +# set(src_files) +# list(APPEND src_files "data/Test_Context.cpp") +# list(APPEND src_files "graph/Test_Connector.cpp") +# list(APPEND src_files "graph/Test_GraphView.cpp") +# #MESSAGE(WARNING "Memory leak in graphMatching/Test_GRegex.cpp") +# list(APPEND src_files "graphMatching/Test_GRegex.cpp") +# list(APPEND src_files "graphMatching/Test_NodeRegex.cpp") +# #MESSAGE(WARNING "Memory leak in graphMatching/Test_SeqStm.cpp") +# list(APPEND src_files "graphMatching/Test_SeqStm.cpp") +# #MESSAGE(WARNING "Memory leak in graphMatching/Test_StmFactory.cpp") +# list(APPEND src_files "graphMatching/Test_StmFactory.cpp") +# list(APPEND src_files "operator/Test_GenericOperator.cpp") add_executable(tests${module_name} ${src_files}) -- GitLab