mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
use libtool for libcfgclient too
moved tests into unittests/ subdirectory added boostlibs ldd flag if needed git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1321 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -219,6 +219,7 @@ AC_CONFIG_FILES([Makefile
|
||||
src/lib/python/isc/config/Makefile
|
||||
src/lib/python/isc/Util/Makefile
|
||||
src/lib/config/Makefile
|
||||
src/lib/config/unittests/Makefile
|
||||
src/lib/dns/Makefile
|
||||
src/lib/dns/tests/Makefile
|
||||
src/lib/exceptions/Makefile
|
||||
@@ -245,7 +246,7 @@ AC_OUTPUT([src/bin/cfgmgr/b10-cfgmgr.py
|
||||
src/bin/msgq/msgq_test
|
||||
src/bin/msgq/run_msgq.sh
|
||||
src/bin/auth/spec_config.h
|
||||
src/lib/config/data_def_unittests_config.h
|
||||
src/lib/config/unittests/data_def_unittests_config.h
|
||||
src/lib/python/isc/config/unittests/config_test
|
||||
src/lib/dns/gen-rdatacode.py
|
||||
src/lib/dns/tests/testdata/gen-wiredata.py
|
||||
|
@@ -12,7 +12,7 @@ b10_auth_SOURCES += common.h
|
||||
b10_auth_SOURCES += main.cc
|
||||
b10_auth_LDADD = $(top_builddir)/src/lib/auth/.libs/libauth.a
|
||||
b10_auth_LDADD += $(top_builddir)/src/lib/dns/.libs/libdns.a
|
||||
b10_auth_LDADD += $(top_builddir)/src/lib/config/libcfgclient.a
|
||||
b10_auth_LDADD += $(top_builddir)/src/lib/config/.libs/libcfgclient.a
|
||||
b10_auth_LDADD += $(top_builddir)/src/lib/cc/libcc.a
|
||||
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
|
||||
b10_auth_LDADD += $(SQLITE_LIBS)
|
||||
|
@@ -16,7 +16,7 @@ run_unittests_LDADD = $(GTEST_LDADD)
|
||||
run_unittests_LDADD += $(SQLITE_LIBS)
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/auth/.libs/libauth.a
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/dns/.libs/libdns.a
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/config/libcfgclient.a
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/config/.libs/libcfgclient.a
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/cc/libcc.a
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
|
||||
if HAVE_BOOSTLIB
|
||||
|
@@ -1,21 +1,11 @@
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/ext
|
||||
|
||||
lib_LIBRARIES = libcfgclient.a
|
||||
libcfgclient_a_SOURCES = config_data.h config_data.cc module_spec.h module_spec.cc ccsession.cc ccsession.h
|
||||
lib_LTLIBRARIES = libcfgclient.la
|
||||
libcfgclient_la_SOURCES = config_data.h config_data.cc module_spec.h module_spec.cc ccsession.cc ccsession.h
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += run_unittests
|
||||
run_unittests_SOURCES = module_spec_unittests.cc config_data_unittests.cc run_unittests.cc
|
||||
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
run_unittests_LDADD = libcfgclient.a $(GTEST_LDADD)
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/cc/libcc.a
|
||||
SUBDIRS = . unittests
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
|
||||
|
@@ -1 +0,0 @@
|
||||
#define TEST_DATA_PATH "@abs_srcdir@/testdata"
|
22
src/lib/config/unittests/Makefile.am
Normal file
22
src/lib/config/unittests/Makefile.am
Normal file
@@ -0,0 +1,22 @@
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/ext
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += run_unittests
|
||||
run_unittests_SOURCES = module_spec_unittests.cc config_data_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/config/libcfgclient.la $(GTEST_LDADD)
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/cc/libcc.a
|
||||
|
||||
if HAVE_BOOSTLIB
|
||||
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
|
||||
run_unittests_LDADD += $(BOOST_SYSTEM_LIB)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
@@ -17,8 +17,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "config_data.h"
|
||||
#include "data_def_unittests_config.h"
|
||||
#include <config/config_data.h>
|
||||
|
||||
#include <iostream>
|
||||
|
1
src/lib/config/unittests/data_def_unittests_config.h.in
Normal file
1
src/lib/config/unittests/data_def_unittests_config.h.in
Normal file
@@ -0,0 +1 @@
|
||||
#define TEST_DATA_PATH "@abs_srcdir@/../testdata"
|
@@ -16,7 +16,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <module_spec.h>
|
||||
#include <config/module_spec.h>
|
||||
|
||||
#include <fstream>
|
||||
|
Reference in New Issue
Block a user