]> git.proxmox.com Git - mirror_frr.git/blob - tests/Makefile.am
Merge remote-tracking branch 'origin/cmaster' into cmaster-next
[mirror_frr.git] / tests / Makefile.am
1 AUTOMAKE_OPTIONS = dejagnu
2 DEJATOOL = libzebra
3
4 SUBDIRS = \
5 bgpd.tests \
6 libzebra.tests
7
8 EXTRA_DIST = \
9 config/unix.exp \
10 lib/bgpd.exp \
11 lib/libzebra.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 $(TESTS_BGPD)
39
40 ../vtysh/vtysh_cmd.c:
41 $(MAKE) -C ../vtysh vtysh_cmd.c
42
43 test-commands-defun.c: ../vtysh/vtysh_cmd.c
44 sed \
45 -e 's/"vtysh\.h"/"tests.h"/' \
46 -e 's/vtysh_init_cmd/test_init_cmd/' \
47 -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
48 < ../vtysh/vtysh_cmd.c \
49 > test-commands-defun.c
50
51 BUILT_SOURCES = test-commands-defun.c
52 noinst_HEADERS = prng.h tests.h common-cli.h
53
54 testcli_SOURCES = test-cli.c common-cli.c
55 testsig_SOURCES = test-sig.c
56 testsegv_SOURCES = test-segv.c
57 testbuffer_SOURCES = test-buffer.c
58 testmemory_SOURCES = test-memory.c
59 testprivs_SOURCES = test-privs.c
60 teststream_SOURCES = test-stream.c
61 heavy_SOURCES = heavy.c main.c
62 heavywq_SOURCES = heavy-wq.c main.c
63 heavythread_SOURCES = heavy-thread.c main.c
64 aspathtest_SOURCES = aspath_test.c
65 testbgpcap_SOURCES = bgp_capability_test.c
66 ecommtest_SOURCES = ecommunity_test.c
67 testbgpmpattr_SOURCES = bgp_mp_attr_test.c
68 testchecksum_SOURCES = test-checksum.c
69 testbgpmpath_SOURCES = bgp_mpath_test.c
70 tabletest_SOURCES = table_test.c
71 testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
72 testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c
73 test_timer_correctness_SOURCES = test-timer-correctness.c prng.c
74 test_timer_performance_SOURCES = test-timer-performance.c prng.c
75
76 testcli_LDADD = ../lib/libzebra.la @LIBCAP@
77 testsig_LDADD = ../lib/libzebra.la @LIBCAP@
78 testsegv_LDADD = ../lib/libzebra.la @LIBCAP@
79 testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
80 testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
81 testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
82 teststream_LDADD = ../lib/libzebra.la @LIBCAP@
83 heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
84 heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
85 heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
86 aspathtest_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libzebra.la @LIBCAP@ -lm
87 testbgpcap_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libzebra.la @LIBCAP@ -lm
88 ecommtest_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libzebra.la @LIBCAP@ -lm
89 testbgpmpattr_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libzebra.la @LIBCAP@ -lm
90 testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
91 testbgpmpath_LDADD = ../bgpd/libbgp.a $(BGP_VNC_RFP_LIB) ../lib/libzebra.la @LIBCAP@ -lm
92 tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
93 testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@
94 testcommands_LDADD = ../lib/libzebra.la @LIBCAP@
95 test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@
96 test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@