1 AUTOMAKE_OPTIONS = dejagnu
18 AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
19 DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
22 TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
29 BGP_VNC_RFP_LIB=@top_builddir@/$(LIBRFP)/librfp.a
34 check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
35 testprivs teststream testchecksum tabletest testnexthopiter \
36 testcommands test-timer-correctness test-timer-performance \
42 $(MAKE) -C ../vtysh vtysh_cmd.c
44 test-commands-defun.c: ../vtysh/vtysh_cmd.c
46 -e 's/"vtysh\.h"/"tests.h"/' \
47 -e 's/vtysh_init_cmd/test_init_cmd/' \
48 -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
49 < ../vtysh/vtysh_cmd.c \
50 > test-commands-defun.c
52 BUILT_SOURCES = test-commands-defun.c
53 noinst_HEADERS = prng.h tests.h common-cli.h
55 testcli_SOURCES = test-cli.c common-cli.c
56 testsig_SOURCES = test-sig.c
57 testsegv_SOURCES = test-segv.c
58 testbuffer_SOURCES = test-buffer.c
59 testmemory_SOURCES = test-memory.c
60 testprivs_SOURCES = test-privs.c
61 teststream_SOURCES = test-stream.c
62 heavy_SOURCES = heavy.c main.c
63 heavywq_SOURCES = heavy-wq.c main.c
64 heavythread_SOURCES = heavy-thread.c main.c
65 aspathtest_SOURCES = aspath_test.c
66 testbgpcap_SOURCES = bgp_capability_test.c
67 ecommtest_SOURCES = ecommunity_test.c
68 testbgpmpattr_SOURCES = bgp_mp_attr_test.c
69 testchecksum_SOURCES = test-checksum.c
70 testbgpmpath_SOURCES = bgp_mpath_test.c
71 tabletest_SOURCES = table_test.c
72 testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
73 testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c
74 test_timer_correctness_SOURCES = test-timer-correctness.c prng.c
75 test_timer_performance_SOURCES = test-timer-performance.c prng.c
76 test_srcdest_table_SOURCES = test-srcdest-table.c prng.c
78 testcli_LDADD = ../lib/libfrr.la @LIBCAP@
79 testsig_LDADD = ../lib/libfrr.la @LIBCAP@
80 testsegv_LDADD = ../lib/libfrr.la @LIBCAP@
81 testbuffer_LDADD = ../lib/libfrr.la @LIBCAP@
82 testmemory_LDADD = ../lib/libfrr.la @LIBCAP@
83 testprivs_LDADD = ../lib/libfrr.la @LIBCAP@
84 teststream_LDADD = ../lib/libfrr.la @LIBCAP@
85 heavy_LDADD = ../lib/libfrr.la @LIBCAP@ -lm
86 heavywq_LDADD = ../lib/libfrr.la @LIBCAP@ -lm
87 heavythread_LDADD = ../lib/libfrr.la @LIBCAP@ -lm
88 aspathtest_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libfrr.la @LIBCAP@ -lm
89 testbgpcap_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libfrr.la @LIBCAP@ -lm
90 ecommtest_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libfrr.la @LIBCAP@ -lm
91 testbgpmpattr_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libfrr.la @LIBCAP@ -lm
92 testchecksum_LDADD = ../lib/libfrr.la @LIBCAP@
93 testbgpmpath_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libfrr.la @LIBCAP@ -lm
94 tabletest_LDADD = ../lib/libfrr.la @LIBCAP@ -lm
95 testnexthopiter_LDADD = ../lib/libfrr.la @LIBCAP@
96 testcommands_LDADD = ../lib/libfrr.la @LIBCAP@
97 test_timer_correctness_LDADD = ../lib/libfrr.la @LIBCAP@
98 test_timer_performance_LDADD = ../lib/libfrr.la @LIBCAP@
99 test_srcdest_table_LDADD = ../lib/libfrr.la @LIBCAP@