diff options
-rw-r--r-- | src/lib/process/cfgrpt/tests/Makefile.am | 1 | ||||
-rw-r--r-- | src/lib/process/cfgrpt/tests/config_report_unittests.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/process/cfgrpt/tests/Makefile.am b/src/lib/process/cfgrpt/tests/Makefile.am index 90fd8412d5..39129fc887 100644 --- a/src/lib/process/cfgrpt/tests/Makefile.am +++ b/src/lib/process/cfgrpt/tests/Makefile.am @@ -21,6 +21,7 @@ run_unittests_SOURCES = config_report_unittests.cc run_unittests.cc run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS) run_unittests_LDADD = $(top_builddir)/src/lib/process/cfgrpt/libcfgrpt.la +run_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la run_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la run_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la diff --git a/src/lib/process/cfgrpt/tests/config_report_unittests.cc b/src/lib/process/cfgrpt/tests/config_report_unittests.cc index db6de414cc..a783f3d196 100644 --- a/src/lib/process/cfgrpt/tests/config_report_unittests.cc +++ b/src/lib/process/cfgrpt/tests/config_report_unittests.cc @@ -6,11 +6,13 @@ #include <config.h> #include <kea_version.h> +#include <hooks/hooks_parser.h> #include <process/cfgrpt/config_report.h> #include <gtest/gtest.h> using namespace isc; +using namespace isc::hooks; using namespace std; // This test verifies that the getConfigReport() function @@ -25,4 +27,5 @@ TEST(ConfigReportTest, getConfigReport) { ASSERT_FALSE(cfgReport.empty()); EXPECT_NE(std::string::npos, cfgReport.find(VERSION)); EXPECT_NE(std::string::npos, cfgReport.find(EXTENDED_VERSION)); + EXPECT_NE(std::string::npos, cfgReport.find(HooksLibrariesParser::default_hooks_path_)); } |