]> git.proxmox.com Git - mirror_frr.git/blame - tests/Makefile.am
zebra: silence zebra_serv_un unused warning
[mirror_frr.git] / tests / Makefile.am
CommitLineData
f281ab97 1AUTOMAKE_OPTIONS = dejagnu
c69905b6 2DEJATOOL = libzebra
f281ab97 3
c69905b6
DL
4SUBDIRS = \
5 bgpd.tests \
6 libzebra.tests
f281ab97
DL
7
8EXTRA_DIST = \
9 config/unix.exp \
5bb7e4d1 10 lib/bgpd.exp \
c69905b6 11 lib/libzebra.exp \
8f399b0e
CF
12 global-conf.exp \
13 testcommands.in \
e712d0e3 14 testcommands.refout
f281ab97 15
9e7a548c 16INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
41c14a1f 17DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
18
c095185c
DL
19if BGPD
20TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
5bb7e4d1 21DEJATOOL += bgpd
c095185c
DL
22else
23TESTS_BGPD =
24endif
25
4d474fa3 26check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
fa713d9e 27 testprivs teststream testchecksum tabletest testnexthopiter \
ba32db1e 28 testcommands test-timer-correctness test-timer-performance \
c095185c 29 $(TESTS_BGPD)
343f720b 30
8f399b0e
CF
31../vtysh/vtysh_cmd.c:
32 $(MAKE) -C ../vtysh vtysh_cmd.c
33
34test-commands-defun.c: ../vtysh/vtysh_cmd.c
35 sed \
36 -e '/"vtysh.h"/d' \
37 -e 's/vtysh_init_cmd/test_init_cmd/' \
38 -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
39 < ../vtysh/vtysh_cmd.c \
40 > test-commands-defun.c
41
e712d0e3 42BUILT_SOURCES = test-commands-defun.c
a83a1e9c
DL
43noinst_HEADERS = prng.h
44
41c14a1f 45testsig_SOURCES = test-sig.c
4d474fa3 46testsegv_SOURCES = test-segv.c
4dcadf7e 47testbuffer_SOURCES = test-buffer.c
48testmemory_SOURCES = test-memory.c
84771ee0 49testprivs_SOURCES = test-privs.c
067fca86 50teststream_SOURCES = test-stream.c
9f3f7a11 51heavy_SOURCES = heavy.c main.c
52heavywq_SOURCES = heavy-wq.c main.c
53heavythread_SOURCES = heavy-thread.c main.c
1f377b02 54aspathtest_SOURCES = aspath_test.c
6d58272b 55testbgpcap_SOURCES = bgp_capability_test.c
0b2aa3a0 56ecommtest_SOURCES = ecommunity_test.c
343f720b 57testbgpmpattr_SOURCES = bgp_mp_attr_test.c
5d4b8cf2 58testchecksum_SOURCES = test-checksum.c
42ea6851 59testbgpmpath_SOURCES = bgp_mpath_test.c
28971c8c 60tabletest_SOURCES = table_test.c
fa713d9e 61testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
8f399b0e 62testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c
ba32db1e
CF
63test_timer_correctness_SOURCES = test-timer-correctness.c prng.c
64test_timer_performance_SOURCES = test-timer-performance.c prng.c
41c14a1f 65
66testsig_LDADD = ../lib/libzebra.la @LIBCAP@
4d474fa3 67testsegv_LDADD = ../lib/libzebra.la @LIBCAP@
4dcadf7e 68testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
69testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
84771ee0 70testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
067fca86 71teststream_LDADD = ../lib/libzebra.la @LIBCAP@
9f3f7a11 72heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
73heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
1d2c893b 74heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
d1d3ac9b
AS
75aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
76testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
77ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
78testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
5d4b8cf2 79testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
d1d3ac9b 80testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
28971c8c 81tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
fa713d9e 82testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@
8f399b0e 83testcommands_LDADD = ../lib/libzebra.la @LIBCAP@
ba32db1e
CF
84test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@
85test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@