]> git.ipfire.org Git - thirdparty/lldpd.git/blob - tests/Makefile.am
tests: display tests/test-suite.log on errors
[thirdparty/lldpd.git] / tests / Makefile.am
1 AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
2 AM_CPPFLAGS = $(LLDP_CPPFLAGS)
3 AM_LDFLAGS = $(LLDP_LDFLAGS) $(LLDP_BIN_LDFLAGS)
4
5 if HAVE_CHECK
6
7 TESTS = check_marshal check_pattern check_bitmap check_fixedpoint \
8 check_lldp check_cdp check_sonmp check_edp
9 AM_CFLAGS += @check_CFLAGS@
10 LDADD = $(top_builddir)/src/daemon/liblldpd.la @check_LIBS@ @libevent_LDFLAGS@
11
12 check_marshal_SOURCES = check_marshal.c \
13 $(top_srcdir)/src/marshal.h \
14 check-compat.h
15
16 check_pattern_SOURCES = check_pattern.c \
17 $(top_srcdir)/src/daemon/lldpd.h
18
19 check_bitmap_SOURCES = check_bitmap.c \
20 $(top_srcdir)/src/daemon/lldpd.h
21
22 check_lldp_SOURCES = check_lldp.c \
23 $(top_srcdir)/src/daemon/lldpd.h \
24 common.h common.c check-compat.h
25
26 check_cdp_SOURCES = check_cdp.c \
27 $(top_srcdir)/src/daemon/lldpd.h \
28 common.h common.c check-compat.h
29
30 check_sonmp_SOURCES = check_sonmp.c \
31 $(top_srcdir)/src/daemon/lldpd.h \
32 common.h common.c check-compat.h
33
34 check_edp_SOURCES = check_edp.c \
35 $(top_srcdir)/src/daemon/lldpd.h \
36 common.h common.c check-compat.h
37
38 check_fixedpoint_SOURCES = check_fixedpoint.c
39 check_fixedpoint_LDADD = $(top_builddir)/src/lib/libfixedpoint.la $(LDADD)
40
41 if USE_SNMP
42 TESTS += check_snmp
43 check_snmp_SOURCES = check_snmp.c \
44 $(top_srcdir)/src/daemon/lldpd.h \
45 $(top_srcdir)/src/daemon/agent.h
46 LDADD += @NETSNMP_LIBS@
47 endif
48
49 check_PROGRAMS = $(TESTS) decode
50 decode_SOURCES = decode.c \
51 $(top_srcdir)/src/daemon/lldpd.h \
52 common.h common.c
53
54 endif
55
56 MOSTLYCLEANFILES = *.pcap