]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[github21] Compilation fixes for Cassandra unit-tests.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 31 May 2016 18:26:46 +0000 (20:26 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 31 May 2016 18:26:46 +0000 (20:26 +0200)
src/lib/dhcpsrv/tests/dscsql_lease_mgr_unittest.cc
src/lib/dhcpsrv/testutils/Makefile.am

index e35f7c0e4e71386d8709d57549e980032f8bdc80..48071575d0952665453ba1c7570a5cf22da1b9dd 100644 (file)
@@ -81,7 +81,7 @@ public:
     /// the same database.
     void reopen(Universe) {
         LeaseMgrFactory::destroy();
-        LeaseMgrFactory::create(validConnectionString());
+        LeaseMgrFactory::create(validDSCSQLConnectionString());
         lmptr_ = &(LeaseMgrFactory::instance());
     }
 
@@ -185,8 +185,8 @@ TEST_F(DSCSqlLeaseMgrTest, checkVersion) {
     // Check version
     pair<uint32_t, uint32_t> version;
     ASSERT_NO_THROW(version = lmptr_->getVersion());
-    EXPECT_EQ(CURRENT_VERSION_VERSION, version.first);
-    EXPECT_EQ(CURRENT_VERSION_MINOR, version.second);
+    EXPECT_EQ(DSCSQL_CURRENT_VERSION, version.first);
+    EXPECT_EQ(DSCSQL_CURRENT_MINOR, version.second);
 }
 
 ////////////////////////////////////////////////////////////////////////////////
index f058c553a7ed185008011ecd3682c73c6e15fdee..500ce75a759399b6f8bbac72e5f9f27679d52a40 100644 (file)
@@ -19,9 +19,18 @@ libdhcpsrvtest_la_SOURCES += schema.cc schema.h
 else
 if HAVE_PGSQL
 libdhcpsrvtest_la_SOURCES += schema.cc schema.h
+else
+if HAVE_DSCSQL
+libdhcpsrvtest_la_SOURCES += schema.cc schema.h
+endif
 endif
 endif
 
+if HAVE_DSCSQL
+libdhcpsrvtest_la_SOURCES += dscsql_schema.cc dscsql_schema.h
+endif
+
+
 if HAVE_MYSQL
 libdhcpsrvtest_la_SOURCES += mysql_schema.cc mysql_schema.h
 endif
@@ -38,6 +47,11 @@ if HAVE_PGSQL
 libdhcpsrvtest_la_CPPFLAGS += $(PGSQL_CPPFLAGS)
 endif
 
+if HAVE_DSCSQL
+libdhcpsrvtest_la_CPPFLAGS += $(DSCSQL_CPPFLAGS)
+endif
+
+
 libdhcpsrvtest_la_LDFLAGS  = $(AM_LDFLAGS)
 if HAVE_MYSQL
 libdhcpsrvtest_la_LDFLAGS  += $(MYSQL_LIBS)
@@ -46,6 +60,10 @@ if HAVE_PGSQL
 libdhcpsrvtest_la_LDFLAGS  += $(PGSQL_LIBS)
 endif
 
+if HAVE_DSCSQL
+libdhcpsrvtest_la_LDFLAGS  += $(DSCSQL_LIBS)
+endif
+
 libdhcpsrvtest_la_LIBADD   = $(top_builddir)/src/lib/cc/libkea-cc.la
 libdhcpsrvtest_la_LIBADD  += $(top_builddir)/src/lib/log/libkea-log.la