Skip to content

Commit

Permalink
systemtests: disable catalog test when gtest is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 24, 2020
1 parent 290fd38 commit 178be66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion systemtests/CMakeLists.txt
Expand Up @@ -584,11 +584,13 @@ else()
list(APPEND SYSTEM_TESTS_DISABLED "python-bareos-test")
endif()

bareosfindlibrary("gtest")
if(GTEST_FOUND)
list(APPEND SYSTEM_TESTS "catalog")
message(STATUS "adding catalog test as gtest was found")
else()
list(APPEND SYSTEM_TESTS_DISABLED "catalog")
message(STATUS "disabling catalog test as gtest was not")
message(STATUS "disabling catalog test as gtest was not found")
endif()


Expand Down

0 comments on commit 178be66

Please sign in to comment.