]>
Commit | Line | Data |
---|---|---|
f281ab97 | 1 | AUTOMAKE_OPTIONS = dejagnu |
c69905b6 | 2 | DEJATOOL = libzebra |
f281ab97 | 3 | |
c69905b6 DL |
4 | SUBDIRS = \ |
5 | bgpd.tests \ | |
6 | libzebra.tests | |
f281ab97 DL |
7 | |
8 | EXTRA_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 | 16 | INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib |
41c14a1f | 17 | DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\" |
18 | ||
c095185c DL |
19 | if BGPD |
20 | TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath | |
5bb7e4d1 | 21 | DEJATOOL += bgpd |
c095185c DL |
22 | else |
23 | TESTS_BGPD = | |
24 | endif | |
25 | ||
4d474fa3 | 26 | check_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 | ||
34 | test-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 | 42 | BUILT_SOURCES = test-commands-defun.c |
a83a1e9c DL |
43 | noinst_HEADERS = prng.h |
44 | ||
41c14a1f | 45 | testsig_SOURCES = test-sig.c |
4d474fa3 | 46 | testsegv_SOURCES = test-segv.c |
4dcadf7e | 47 | testbuffer_SOURCES = test-buffer.c |
48 | testmemory_SOURCES = test-memory.c | |
84771ee0 | 49 | testprivs_SOURCES = test-privs.c |
067fca86 | 50 | teststream_SOURCES = test-stream.c |
9f3f7a11 | 51 | heavy_SOURCES = heavy.c main.c |
52 | heavywq_SOURCES = heavy-wq.c main.c | |
53 | heavythread_SOURCES = heavy-thread.c main.c | |
1f377b02 | 54 | aspathtest_SOURCES = aspath_test.c |
6d58272b | 55 | testbgpcap_SOURCES = bgp_capability_test.c |
0b2aa3a0 | 56 | ecommtest_SOURCES = ecommunity_test.c |
343f720b | 57 | testbgpmpattr_SOURCES = bgp_mp_attr_test.c |
5d4b8cf2 | 58 | testchecksum_SOURCES = test-checksum.c |
42ea6851 | 59 | testbgpmpath_SOURCES = bgp_mpath_test.c |
28971c8c | 60 | tabletest_SOURCES = table_test.c |
fa713d9e | 61 | testnexthopiter_SOURCES = test-nexthop-iter.c prng.c |
8f399b0e | 62 | testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c |
ba32db1e CF |
63 | test_timer_correctness_SOURCES = test-timer-correctness.c prng.c |
64 | test_timer_performance_SOURCES = test-timer-performance.c prng.c | |
41c14a1f | 65 | |
66 | testsig_LDADD = ../lib/libzebra.la @LIBCAP@ | |
4d474fa3 | 67 | testsegv_LDADD = ../lib/libzebra.la @LIBCAP@ |
4dcadf7e | 68 | testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@ |
69 | testmemory_LDADD = ../lib/libzebra.la @LIBCAP@ | |
84771ee0 | 70 | testprivs_LDADD = ../lib/libzebra.la @LIBCAP@ |
067fca86 | 71 | teststream_LDADD = ../lib/libzebra.la @LIBCAP@ |
9f3f7a11 | 72 | heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
73 | heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm | |
1d2c893b | 74 | heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
d1d3ac9b AS |
75 | aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
76 | testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm | |
77 | ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm | |
78 | testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm | |
5d4b8cf2 | 79 | testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@ |
d1d3ac9b | 80 | testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
28971c8c | 81 | tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
fa713d9e | 82 | testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@ |
8f399b0e | 83 | testcommands_LDADD = ../lib/libzebra.la @LIBCAP@ |
ba32db1e CF |
84 | test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@ |
85 | test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@ |