Skip to content

Commit

Permalink
tests: explain link between skipped gtests and systemtest
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and arogge committed Mar 2, 2023
1 parent eae9cca commit 390ad97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/tests/CMakeLists.txt
Expand Up @@ -49,6 +49,8 @@ macro(bareos_gtest_add_tests testname)
endmacro() # bareos_gtest_add_tests

macro(bareos_add_test BAREOS_ADD_TEST_TESTNAME)
# special option for gtests that aren't supposed to run alone, since they
# are executed by systemtests with which they have dependencies.
set(options SKIP_GTEST DISABLE)
set(multiValueArgs ADDITIONAL_SOURCES LINK_LIBRARIES COMPILE_DEFINITIONS
COMPILE_OPTIONS
Expand Down Expand Up @@ -176,7 +178,7 @@ if(NOT client-only)
catalog
LINK_LIBRARIES bareos dird_objects bareosfind bareossql
$<$<BOOL:HAVE_PAM>:${PAM_LIBRARIES}> GTest::gtest_main
SKIP_GTEST
SKIP_GTEST # used by systemtest catalog
)

bareos_add_test(cli_test LINK_LIBRARIES bareos CLI11::CLI11 GTest::gtest_main)
Expand Down Expand Up @@ -210,7 +212,7 @@ if(NOT client-only)
messages_resource
LINK_LIBRARIES bareos dird_objects bareosfind bareossql
$<$<BOOL:HAVE_PAM>:${PAM_LIBRARIES}> GTest::gtest_main
SKIP_GTEST
SKIP_GTEST # used by systemtest messages
)
bareos_add_test(
multicolumn_prompts
Expand Down

0 comments on commit 390ad97

Please sign in to comment.