Annotation of embedaddon/dhcp/server/tests/Makefile.am, revision 1.1.1.1

1.1       misho       1: SUBDIRS = .
                      2: 
                      3: AM_CPPFLAGS = $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes
                      4: AM_CPPFLAGS += -std=c99 -I$(top_srcdir)/bind/include -I$(top_srcdir)
                      5: AM_CPPFLAGS += -DLOCALSTATEDIR='"."' -Wno-unused-function -Wno-error=unused-variable
                      6: 
                      7: EXTRA_DIST = Atffile
                      8: 
                      9: # for autotools debugging only
                     10: info:
                     11:        @echo "ATF_CFLAGS=$(ATF_CFLAGS)"
                     12:        @echo "ATF_LDFLAGS=$(ATF_LDFLAGS)"
                     13:        @echo "ATF_LIBS=$(ATF_LIBS)"
                     14: 
                     15: DHCPSRC = ../dhcp.c ../bootp.c ../confpars.c ../db.c ../class.c      \
                     16:           ../failover.c ../omapi.c ../mdb.c ../stables.c ../salloc.c \
                     17:           ../ddns.c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c        \
                     18:           ../dhcpd.c
                     19: 
                     20: DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a    \
                     21:           $(top_builddir)/dhcpctl/libdhcpctl.a $(top_builddir)/dst/libdst.a \
                     22:           $(top_builddir)/minires/libres.a
                     23: 
                     24: ATF_TESTS =
                     25: TESTS = 
                     26: if HAVE_ATF
                     27: 
                     28: check: $(ATF_TESTS)
                     29:        atf-run | atf-report
                     30: 
                     31: ATF_TESTS += dhcpd_unittests legacy_unittests hash_unittests
                     32: 
                     33: dhcpd_unittests_SOURCES = $(DHCPSRC)
                     34: dhcpd_unittests_SOURCES += simple_unittest.c
                     35: 
                     36: dhcpd_unittests_LDADD = $(ATF_LDFLAGS)
                     37: dhcpd_unittests_LDADD += $(DHCPLIBS)
                     38: 
                     39: dhcpd_unittests_LDFLAGS = $(AM_LDFLAGS) $(ATF_LDFLAGS)
                     40: 
                     41: hash_unittests_SOURCES = $(DHCPSRC) hash_unittest.c
                     42: hash_unittests_LDADD = $(DHCPLIBS) $(ATF_LDFLAGS)
                     43: 
                     44: 
                     45: # This is a legacy unittest. It replaces main() with something that was in mdb6.c
                     46: legacy_unittests_SOURCES = $(DHCPSRC) mdb6_unittest.c
                     47: legacy_unittests_LDADD = $(DHCPLIBS) $(ATF_LDFLAGS)
                     48: 
                     49: endif
                     50: 
                     51: check_PROGRAMS = $(ATF_TESTS) $(TESTS)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>