]> git.sommitrealweird.co.uk Git - quagga-debian.git/blob - tests/Makefile.am
Import Upstream version 1.2.2
[quagga-debian.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 check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
29                 testprivs teststream testchecksum tabletest testnexthopiter \
30                 testcommands test-timer-correctness test-timer-performance \
31                 testcli \
32                 $(TESTS_BGPD)
33
34 ../vtysh/vtysh_cmd.c:
35         $(MAKE) -C ../vtysh vtysh_cmd.c
36
37 test-commands-defun.c: ../vtysh/vtysh_cmd.c
38         sed \
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
44
45 BUILT_SOURCES = test-commands-defun.c
46 CLEANFILES = test-commands-defun.c bgpd libzebra
47
48 noinst_HEADERS = prng.h tests.h common-cli.h
49
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
71
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@