diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:15:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:15:43 +0000 |
commit | f5f56e1a1c4d9e9496fcb9d81131066a964ccd23 (patch) | |
tree | 49e44c6f87febed37efb953ab5485aa49f6481a7 /src/lib/database/tests/Makefile.am | |
parent | Initial commit. (diff) | |
download | isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.tar.xz isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.zip |
Adding upstream version 2.4.1.upstream/2.4.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib/database/tests/Makefile.am')
-rw-r--r-- | src/lib/database/tests/Makefile.am | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/database/tests/Makefile.am b/src/lib/database/tests/Makefile.am new file mode 100644 index 0000000..f4cf4f0 --- /dev/null +++ b/src/lib/database/tests/Makefile.am @@ -0,0 +1,44 @@ +SUBDIRS = . + +AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib +AM_CPPFLAGS += $(BOOST_INCLUDES) +AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/lib/config/tests\" + +AM_CXXFLAGS = $(KEA_CXXFLAGS) + +if USE_STATIC_LINK +AM_LDFLAGS = -static +endif + +CLEANFILES = *.gcno *.gcda + +TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND) + +TESTS = +if HAVE_GTEST +TESTS += libdatabase_unittests + +libdatabase_unittests_SOURCES = audit_entry_unittest.cc +libdatabase_unittests_SOURCES += backend_selector_unittest.cc +libdatabase_unittests_SOURCES += database_connection_unittest.cc +libdatabase_unittests_SOURCES += database_log_unittest.cc +libdatabase_unittests_SOURCES += dbaccess_parser_unittest.cc +libdatabase_unittests_SOURCES += run_unittests.cc +libdatabase_unittests_SOURCES += server_unittest.cc +libdatabase_unittests_SOURCES += server_selector_unittest.cc + +libdatabase_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) +libdatabase_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS) + +libdatabase_unittests_LDADD = $(top_builddir)/src/lib/database/libkea-database.la +libdatabase_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la +libdatabase_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la +libdatabase_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la +libdatabase_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la +libdatabase_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la +libdatabase_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la +libdatabase_unittests_LDADD += $(LOG4CPLUS_LIBS) $(BOOST_LIBS) $(GTEST_LDADD) + +endif + +noinst_PROGRAMS = $(TESTS) |