From: Tomek Mrugalski Date: Fri, 10 Aug 2012 09:30:48 +0000 (+0200) Subject: [rt25901_atf] tests subdirs are now unconditionally listed in SUBDIRS X-Git-Tag: v4_3_0a1~77^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22a37d9f1587ce52c3b04a79b5290e3c2ed3cadd;p=thirdparty%2Fdhcp.git [rt25901_atf] tests subdirs are now unconditionally listed in SUBDIRS --- diff --git a/common/Makefile.am b/common/Makefile.am index 8bd27f7ea..7199d4b98 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -10,8 +10,4 @@ libdhcp_a_SOURCES = alloc.c bpf.c comapi.c conflex.c ctrace.c discover.c \ man_MANS = dhcp-eval.5 dhcp-options.5 EXTRA_DIST = $(man_MANS) -SUBDIRS = . - -if HAVE_ATF - SUBDIRS += tests -endif +SUBDIRS = . tests diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am index eeba8dbb3..a389c4137 100644 --- a/common/tests/Makefile.am +++ b/common/tests/Makefile.am @@ -2,9 +2,11 @@ SUBDIRS = . AM_CPPFLAGS = $(ATF_CFLAGS) -std=c99 -I$(top_srcdir)/includes -ATF_TESTS = alloc_unittest +ATF_TESTS = -check_PROGRAMS = $(ATF_TESTS) +if HAVE_ATF + +ATF_TESTS += alloc_unittest alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c alloc_unittest_LDADD = $(ATF_LDFLAGS) @@ -12,5 +14,9 @@ alloc_unittest_LDADD += ../libdhcp.a \ ../../omapip/libomapi.a ../../bind/lib/libdns.a \ ../../bind/lib/libisc.a +endif + check: $(ATF_TESTS) atf-run | atf-report + +check_PROGRAMS = $(ATF_TESTS) diff --git a/server/Makefile.am b/server/Makefile.am index 1330619b2..3c2bba712 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -1,11 +1,7 @@ -SUBDIRS = . +SUBDIRS = . tests AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"' -if HAVE_ATF - SUBDIRS += tests -endif - dist_sysconf_DATA = dhcpd.conf sbin_PROGRAMS = dhcpd dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \