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
28 check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
29 testprivs teststream testchecksum tabletest testnexthopiter \
30 testcommands test-timer-correctness test-timer-performance \
35 $(MAKE) -C ../vtysh vtysh_cmd.c
37 test-commands-defun.c: ../vtysh/vtysh_cmd.c
39 -e 's/"vtysh\.h"/"tests.h"/' \
40 -e 's/vtysh_init_cmd/test_init_cmd/' \
41 -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
42 < ../vtysh/vtysh_cmd.c \
43 > test-commands-defun.c
45 BUILT_SOURCES = test-commands-defun.c
46 CLEANFILES = test-commands-defun.c bgpd libzebra
48 noinst_HEADERS = prng.h tests.h common-cli.h
50 testcli_SOURCES = test-cli.c common-cli.c
51 testsig_SOURCES = test-sig.c
52 testsegv_SOURCES = test-segv.c
53 testbuffer_SOURCES = test-buffer.c
54 testmemory_SOURCES = test-memory.c
55 testprivs_SOURCES = test-privs.c
56 teststream_SOURCES = test-stream.c
57 heavy_SOURCES = heavy.c main.c
58 heavywq_SOURCES = heavy-wq.c main.c
59 heavythread_SOURCES = heavy-thread.c main.c
60 aspathtest_SOURCES = aspath_test.c
61 testbgpcap_SOURCES = bgp_capability_test.c
62 ecommtest_SOURCES = ecommunity_test.c
63 testbgpmpattr_SOURCES = bgp_mp_attr_test.c
64 testchecksum_SOURCES = test-checksum.c
65 testbgpmpath_SOURCES = bgp_mpath_test.c
66 tabletest_SOURCES = table_test.c
67 testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
68 testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c
69 test_timer_correctness_SOURCES = test-timer-correctness.c prng.c
70 test_timer_performance_SOURCES = test-timer-performance.c prng.c
72 testcli_LDADD = ../lib/libzebra.la @LIBCAP@
73 testsig_LDADD = ../lib/libzebra.la @LIBCAP@
74 testsegv_LDADD = ../lib/libzebra.la @LIBCAP@
75 testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
76 testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
77 testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
78 teststream_LDADD = ../lib/libzebra.la @LIBCAP@
79 heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
80 heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
81 heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
82 aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
83 testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
84 ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
85 testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
86 testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
87 testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
88 tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
89 testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@
90 testcommands_LDADD = ../lib/libzebra.la @LIBCAP@
91 test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@
92 test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@