diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7ad25426d..e895b0ea7 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -120,7 +120,7 @@ if(ICINGA2_WITH_LIVESTATUS) add_boost_test(livestatus SOURCES livestatus-test.cpp ${livestatus_test_SOURCES} - LIBRARIES base config icinga methods livestatus + LIBRARIES base config icinga livestatus DEPENDENCIES methods TESTS livestatus/hosts livestatus/services ) diff --git a/test/livestatus-test.cpp b/test/livestatus-test.cpp index 18aa93207..37ff491d7 100644 --- a/test/livestatus-test.cpp +++ b/test/livestatus-test.cpp @@ -52,6 +52,8 @@ struct LivestatusFixture static void CreateTestObjects(void) { String config = R"CONFIG( +library "methods" + object CheckCommand "dummy" { command = "/bin/echo" }