diff options
author | Razvan Becheriu <razvan@isc.org> | 2024-09-16 23:10:10 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2024-10-03 20:04:36 +0200 |
commit | 14c95b470573278ac23f941893dd1f89cdd294c3 (patch) | |
tree | 888cb2616ff657ffc528bd9854852ef8f7a2587e /src/lib | |
parent | [#3536] added hook callouts (diff) | |
download | kea-14c95b470573278ac23f941893dd1f89cdd294c3.tar.xz kea-14c95b470573278ac23f941893dd1f89cdd294c3.zip |
[#3536] remove HAVE_MYSQL and HAVE_PGSQL
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dhcpsrv/Makefile.am | 6 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/Makefile.am | 22 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc | 9 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc | 8 | ||||
-rw-r--r-- | src/lib/dhcpsrv/testutils/Makefile.am | 24 |
5 files changed, 1 insertions, 68 deletions
diff --git a/src/lib/dhcpsrv/Makefile.am b/src/lib/dhcpsrv/Makefile.am index fda9a6d586..7d42abeb2a 100644 --- a/src/lib/dhcpsrv/Makefile.am +++ b/src/lib/dhcpsrv/Makefile.am @@ -13,12 +13,6 @@ AM_CPPFLAGS += -DTOP_BUILDDIR="\"$(top_builddir)\"" # Set location of the kea-lfc binary. AM_CPPFLAGS += -DKEA_LFC_EXECUTABLE="\"$(kea_lfc_location)\"" AM_CPPFLAGS += $(BOOST_INCLUDES) -if HAVE_MYSQL -AM_CPPFLAGS += $(MYSQL_CPPFLAGS) -endif -if HAVE_PGSQL -AM_CPPFLAGS += $(PGSQL_CPPFLAGS) -endif AM_CXXFLAGS = $(KEA_CXXFLAGS) diff --git a/src/lib/dhcpsrv/tests/Makefile.am b/src/lib/dhcpsrv/tests/Makefile.am index ca021a1105..857534ba79 100644 --- a/src/lib/dhcpsrv/tests/Makefile.am +++ b/src/lib/dhcpsrv/tests/Makefile.am @@ -132,22 +132,10 @@ libdhcpsrv_unittests_SOURCES += network_state_unittest.cc libdhcpsrv_unittests_SOURCES += network_unittest.cc libdhcpsrv_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) -if HAVE_MYSQL -libdhcpsrv_unittests_CPPFLAGS += $(MYSQL_CPPFLAGS) -endif -if HAVE_PGSQL -libdhcpsrv_unittests_CPPFLAGS += $(PGSQL_CPPFLAGS) -endif libdhcpsrv_unittests_CXXFLAGS = $(AM_CXXFLAGS) libdhcpsrv_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS) -if HAVE_MYSQL -libdhcpsrv_unittests_LDFLAGS += $(MYSQL_LIBS) -endif -if HAVE_PGSQL -libdhcpsrv_unittests_LDFLAGS += $(PGSQL_LIBS) -endif libdhcpsrv_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la @@ -161,16 +149,6 @@ libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcp/testutils/libdhcptest libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la -if HAVE_PGSQL -libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/pgsql/testutils/libpgsqltest.la -libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la -endif - -if HAVE_MYSQL -libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/mysql/testutils/libmysqltest.la -libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la -endif - libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/database/testutils/libdatabasetest.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la diff --git a/src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc b/src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc index a9ec22fb8b..74e7cfba01 100644 --- a/src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc +++ b/src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc @@ -20,15 +20,6 @@ #include <stats/stats_mgr.h> #include <testutils/gtest_utils.h> #include <util/str.h> - -#if defined HAVE_MYSQL -#include <mysql/testutils/mysql_schema.h> -#endif - -#if defined HAVE_PGSQL -#include <pgsql/testutils/pgsql_schema.h> -#endif - #include <boost/pointer_cast.hpp> using namespace std; diff --git a/src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc b/src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc index a465f41bc3..3df4905295 100644 --- a/src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc @@ -15,14 +15,6 @@ #include <testutils/test_to_element.h> #include <gtest/gtest.h> -#if defined HAVE_MYSQL -#include <mysql/testutils/mysql_schema.h> -#endif - -#if defined HAVE_PGSQL -#include <pgsql/testutils/pgsql_schema.h> -#endif - using namespace isc; using namespace isc::dhcp; using namespace isc::test; diff --git a/src/lib/dhcpsrv/testutils/Makefile.am b/src/lib/dhcpsrv/testutils/Makefile.am index 81d350175f..3c8048921c 100644 --- a/src/lib/dhcpsrv/testutils/Makefile.am +++ b/src/lib/dhcpsrv/testutils/Makefile.am @@ -32,35 +32,13 @@ libdhcpsrvtest_la_SOURCES += test_config_backend_dhcp4.cc test_config_backend_dh libdhcpsrvtest_la_SOURCES += test_config_backend_dhcp6.cc test_config_backend_dhcp6.h libdhcpsrvtest_la_SOURCES += generic_lease_extended_info_unittest.h -if HAVE_MYSQL -libdhcpsrvtest_la_SOURCES += mysql_generic_backend_unittest.cc mysql_generic_backend_unittest.h -endif -if HAVE_PGSQL -libdhcpsrvtest_la_SOURCES += pgsql_generic_backend_unittest.cc pgsql_generic_backend_unittest.h -endif libdhcpsrvtest_la_CXXFLAGS = $(AM_CXXFLAGS) libdhcpsrvtest_la_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) -libdhcpsrvtest_la_LIBADD = - -if HAVE_PGSQL -libdhcpsrvtest_la_CPPFLAGS += $(PGSQL_CPPFLAGS) -libdhcpsrvtest_la_LIBADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la -endif -if HAVE_MYSQL -libdhcpsrvtest_la_CPPFLAGS += $(MYSQL_CPPFLAGS) -libdhcpsrvtest_la_LIBADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la -endif - libdhcpsrvtest_la_LDFLAGS = $(AM_LDFLAGS) -if HAVE_MYSQL -libdhcpsrvtest_la_LDFLAGS += $(MYSQL_LIBS) -endif -if HAVE_PGSQL -libdhcpsrvtest_la_LDFLAGS += $(PGSQL_LIBS) -endif +libdhcpsrvtest_la_LIBADD = libdhcpsrvtest_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la libdhcpsrvtest_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la libdhcpsrvtest_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la |