summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-10-15 19:59:09 +0200
committerThomas Haller <thaller@redhat.com>2016-10-19 17:16:08 +0200
commit815624bf240e5eb75b46622d64a18ff5586d22ee (patch)
treec87e8b2d30d3c6565ab2134afca4d2d40ae06c51
parent481d2165e993b6ba543dadae356c6225c20a792f (diff)
downloadNetworkManager-815624bf240e5eb75b46622d64a18ff5586d22ee.tar.gz
build: merge "src/dhcp-manager/tests/Makefile.am" into toplevel Makefile
-rw-r--r--Makefile.am46
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/dhcp-manager/Makefile.am1
-rw-r--r--src/dhcp-manager/tests/Makefile.am50
5 files changed, 46 insertions, 55 deletions
diff --git a/Makefile.am b/Makefile.am
index c9fa8b8a83..bb803eb702 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1498,6 +1498,52 @@ src_dhcp_manager_nm_dhcp_helper_LDFLAGS = \
src_dhcp_manager_nm_dhcp_helper_LDADD = $(GLIB_LIBS)
###############################################################################
+# src/dhcp-manager/tests
+###############################################################################
+
+if ENABLE_TESTS
+
+src_dhcp_manager_tests_cppflags = \
+ -I$(top_srcdir)/shared \
+ -I${top_builddir}/shared \
+ -I${top_srcdir}/libnm-core \
+ -I${top_builddir}/libnm-core \
+ -I$(top_srcdir)/src/dhcp-manager \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/platform \
+ -DG_LOG_DOMAIN=\""NetworkManager"\" \
+ -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
+ $(GLIB_CFLAGS) \
+ -DTESTDIR="\"$(abs_srcdir)/src/dhcp-manager/tests\""
+
+src_dhcp_manager_tests_ldadd = \
+ src/libNetworkManager.la
+
+src_dhcp_manager_tests_programs = \
+ src/dhcp-manager/tests/test-dhcp-dhclient \
+ src/dhcp-manager/tests/test-dhcp-utils
+
+noinst_PROGRAMS += $(src_dhcp_manager_tests_programs)
+
+src_dhcp_manager_tests_test_dhcp_dhclient_CPPFLAGS = $(src_dhcp_manager_tests_cppflags)
+src_dhcp_manager_tests_test_dhcp_utils_CPPFLAGS = $(src_dhcp_manager_tests_cppflags)
+
+src_dhcp_manager_tests_test_dhcp_dhclient_LDADD = $(src_dhcp_manager_tests_ldadd)
+src_dhcp_manager_tests_test_dhcp_utils_LDADD = $(src_dhcp_manager_tests_ldadd)
+
+TESTS += $(src_dhcp_manager_tests_programs)
+
+endif
+
+EXTRA_DIST += \
+ src/dhcp-manager/tests/test-dhclient-duid.leases \
+ src/dhcp-manager/tests/test-dhclient-commented-duid.leases \
+ src/dhcp-manager/tests/leases/basic.leases \
+ src/dhcp-manager/tests/leases/malformed1.leases \
+ src/dhcp-manager/tests/leases/malformed2.leases \
+ src/dhcp-manager/tests/leases/malformed3.leases
+
+###############################################################################
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
diff --git a/configure.ac b/configure.ac
index e9ab6e605c..11b4a09a93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1137,8 +1137,6 @@ shared/nm-version-macros.h
src/Makefile
src/tests/Makefile
src/tests/config/Makefile
-src/dhcp-manager/Makefile
-src/dhcp-manager/tests/Makefile
src/dnsmasq-manager/tests/Makefile
src/supplicant-manager/tests/Makefile
src/supplicant-manager/tests/certs/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index ed59423998..d4405ca4d1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,4 @@
SUBDIRS = \
- dhcp-manager \
ppp-manager \
settings/plugins \
devices/adsl
@@ -18,7 +17,6 @@ endif
if ENABLE_TESTS
SUBDIRS += \
- dhcp-manager/tests \
dnsmasq-manager/tests \
platform \
devices \
diff --git a/src/dhcp-manager/Makefile.am b/src/dhcp-manager/Makefile.am
deleted file mode 100644
index 3c6155b9c6..0000000000
--- a/src/dhcp-manager/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = tests
diff --git a/src/dhcp-manager/tests/Makefile.am b/src/dhcp-manager/tests/Makefile.am
deleted file mode 100644
index 8e75e3e194..0000000000
--- a/src/dhcp-manager/tests/Makefile.am
+++ /dev/null
@@ -1,50 +0,0 @@
-AM_CPPFLAGS = \
- -I$(top_srcdir)/shared \
- -I${top_builddir}/shared \
- -I${top_srcdir}/libnm-core \
- -I${top_builddir}/libnm-core \
- -I$(top_srcdir)/src/dhcp-manager \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/platform \
- -DG_LOG_DOMAIN=\""NetworkManager"\" \
- -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
- $(GLIB_CFLAGS) \
- -DTESTDIR="\"$(abs_srcdir)\""
-
-noinst_PROGRAMS = \
- test-dhcp-dhclient \
- test-dhcp-utils
-
-####### dhclient leases test #######
-
-test_dhcp_dhclient_SOURCES = \
- $(top_srcdir)/src/dhcp-manager/nm-dhcp-dhclient-utils.h \
- $(top_srcdir)/src/dhcp-manager/nm-dhcp-dhclient-utils.c \
- $(top_srcdir)/src/dhcp-manager/nm-dhcp-utils.h \
- $(top_srcdir)/src/dhcp-manager/nm-dhcp-utils.c \
- test-dhcp-dhclient.c
-
-test_dhcp_dhclient_LDADD = \
- $(top_builddir)/src/libNetworkManager.la
-
-####### DHCP utils test #######
-
-test_dhcp_utils_SOURCES = \
- test-dhcp-utils.c
-
-test_dhcp_utils_LDADD = \
- $(top_builddir)/src/libNetworkManager.la
-
-#################################
-
-@NM_LOG_COMPILER@
-TESTS = test-dhcp-dhclient test-dhcp-utils
-
-EXTRA_DIST = \
- test-dhclient-duid.leases \
- test-dhclient-commented-duid.leases \
- leases/basic.leases \
- leases/malformed1.leases \
- leases/malformed2.leases \
- leases/malformed3.leases
-