Commit 22a37d9f authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[rt25901_atf] tests subdirs are now unconditionally listed in SUBDIRS

parent 417bd2ee
......@@ -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
......@@ -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)
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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment