]> git.proxmox.com Git - mirror_frr.git/blob - tests/Makefile.am
bee9feaf1ec19901a53850d6f09e72b75d512308
[mirror_frr.git] / tests / Makefile.am
1 AUTOMAKE_OPTIONS = dejagnu
2 DEJATOOL = libfrr
3
4 SUBDIRS = \
5 bgpd.tests \
6 libfrr.tests
7
8 EXTRA_DIST = \
9 config/unix.exp \
10 lib/bgpd.exp \
11 lib/libfrr.exp \
12 global-conf.exp \
13 testcommands.in \
14 testcommands.refout \
15 testcli.in \
16 testcli.refout
17
18 AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
19 DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
20
21 if BGPD
22 TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
23 DEJATOOL += bgpd
24 else
25 TESTS_BGPD =
26 endif
27
28 if ENABLE_BGP_VNC
29 BGP_VNC_RFP_LIB=@top_builddir@/$(LIBRFP)/librfp.a
30 else
31 BGP_VNC_RFP_LIB =
32 endif
33
34 check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
35 testprivs teststream testchecksum tabletest testnexthopiter \
36 testcommands test-timer-correctness test-timer-performance \
37 testcli \
38 test-srcdest-table \
39 $(TESTS_BGPD)
40
41 ../vtysh/vtysh_cmd.c:
42 $(MAKE) -C ../vtysh vtysh_cmd.c
43
44 test-commands-defun.c: ../vtysh/vtysh_cmd.c
45 sed \
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
51
52 BUILT_SOURCES = test-commands-defun.c
53 noinst_HEADERS = prng.h tests.h common-cli.h
54
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
77
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@