From 0d17594aeefcd7574faa852239172b4d86edf16f Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 15 Jul 2020 20:23:54 +0300 Subject: [PATCH] Group unit tests by modules. --- CMakeCommon/UnitTest.cmake | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeCommon/UnitTest.cmake b/CMakeCommon/UnitTest.cmake index 74f514750..c683f26fb 100644 --- a/CMakeCommon/UnitTest.cmake +++ b/CMakeCommon/UnitTest.cmake @@ -70,10 +70,12 @@ MACRO(ADD_UNIT_TESTS) COMMAND ${PYTHON_EXECUTABLE} ${aTestFileName}) if (WIN32) # different path to libraries variable name SET_TESTS_PROPERTIES(${aTestName} PROPERTIES - ENVIRONMENT "PATH=${_JUSTPATH};PYTHONPATH=${_PYTHONPATH}") + ENVIRONMENT "PATH=${_JUSTPATH};PYTHONPATH=${_PYTHONPATH}" + LABELS "${aSubprojectName}") else() SET_TESTS_PROPERTIES(${aTestName} PROPERTIES - ENVIRONMENT "LD_LIBRARY_PATH=${_LD_LIBRARY_PATH};PYTHONPATH=${_PYTHONPATH}") + ENVIRONMENT "LD_LIBRARY_PATH=${_LD_LIBRARY_PATH};PYTHONPATH=${_PYTHONPATH}" + LABELS "${aSubprojectName}") endif() # Debug output... #MESSAGE(STATUS "Test added: ${aTestName} file: ${aTestFileName}") @@ -111,10 +113,12 @@ MACRO(ADD_UNIT_TESTS_API) COMMAND ${PYTHON_EXECUTABLE} ${aTestFileName}) if (WIN32) # different path to libraries variable name SET_TESTS_PROPERTIES(${aTestName} PROPERTIES - ENVIRONMENT "PATH=${_JUSTPATH};PYTHONPATH=${_PYTHONPATH}") + ENVIRONMENT "PATH=${_JUSTPATH};PYTHONPATH=${_PYTHONPATH}" + LABELS "${aSubprojectName}") else() SET_TESTS_PROPERTIES(${aTestName} PROPERTIES - ENVIRONMENT "LD_LIBRARY_PATH=${_LD_LIBRARY_PATH};PYTHONPATH=${_PYTHONPATH}") + ENVIRONMENT "LD_LIBRARY_PATH=${_LD_LIBRARY_PATH};PYTHONPATH=${_PYTHONPATH}" + LABELS "${aSubprojectName}") endif() # Debug output... #MESSAGE(STATUS "Test added: ${aTestName} file: ${aTestFileName}") -- 2.39.2