David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 1 | AUTOMAKE_OPTIONS = dejagnu |
David Lamparter | c69905b | 2013-01-24 01:39:14 +0100 | [diff] [blame] | 2 | DEJATOOL = libzebra |
David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 3 | |
David Lamparter | c69905b | 2013-01-24 01:39:14 +0100 | [diff] [blame] | 4 | SUBDIRS = \ |
| 5 | bgpd.tests \ |
| 6 | libzebra.tests |
David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 7 | |
| 8 | EXTRA_DIST = \ |
| 9 | config/unix.exp \ |
David Lamparter | 5bb7e4d | 2013-02-26 17:53:30 +0100 | [diff] [blame] | 10 | lib/bgpd.exp \ |
David Lamparter | c69905b | 2013-01-24 01:39:14 +0100 | [diff] [blame] | 11 | lib/libzebra.exp \ |
Christian Franke | 8f399b0 | 2013-09-30 12:27:50 +0000 | [diff] [blame] | 12 | global-conf.exp \ |
| 13 | testcommands.in \ |
David Lamparter | d79668f | 2015-05-14 14:47:05 +0200 | [diff] [blame] | 14 | testcommands.refout \ |
| 15 | testcli.in \ |
| 16 | testcli.refout |
David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 17 | |
David Lamparter | 237aac5 | 2014-06-28 22:23:10 +0200 | [diff] [blame] | 18 | AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 19 | DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\" |
| 20 | |
Paul P Komkoff Jr | 46bc0e4 | 2008-08-13 16:17:04 +0100 | [diff] [blame] | 21 | AM_CFLAGS = $(PICFLAGS) |
| 22 | AM_LDFLAGS = $(PILDFLAGS) |
| 23 | |
David Lamparter | c095185 | 2013-02-23 22:17:21 +0100 | [diff] [blame] | 24 | if BGPD |
| 25 | TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath |
David Lamparter | 5bb7e4d | 2013-02-26 17:53:30 +0100 | [diff] [blame] | 26 | DEJATOOL += bgpd |
David Lamparter | c095185 | 2013-02-23 22:17:21 +0100 | [diff] [blame] | 27 | else |
| 28 | TESTS_BGPD = |
| 29 | endif |
| 30 | |
David Lamparter | 4d474fa | 2013-11-19 15:00:06 +0100 | [diff] [blame] | 31 | check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \ |
Christian Franke | fa713d9 | 2013-07-05 15:35:37 +0000 | [diff] [blame] | 32 | testprivs teststream testchecksum tabletest testnexthopiter \ |
Christian Franke | ba32db1 | 2013-11-19 14:11:40 +0000 | [diff] [blame] | 33 | testcommands test-timer-correctness test-timer-performance \ |
David Lamparter | db93eec | 2015-05-05 11:04:59 +0200 | [diff] [blame] | 34 | testcli \ |
David Lamparter | c095185 | 2013-02-23 22:17:21 +0100 | [diff] [blame] | 35 | $(TESTS_BGPD) |
Paul Jakma | 343f720 | 2008-06-07 20:32:38 +0000 | [diff] [blame] | 36 | |
Christian Franke | 8f399b0 | 2013-09-30 12:27:50 +0000 | [diff] [blame] | 37 | ../vtysh/vtysh_cmd.c: |
| 38 | $(MAKE) -C ../vtysh vtysh_cmd.c |
| 39 | |
| 40 | test-commands-defun.c: ../vtysh/vtysh_cmd.c |
| 41 | sed \ |
David Lamparter | c313895 | 2015-04-21 10:02:23 +0200 | [diff] [blame] | 42 | -e 's/"vtysh\.h"/"tests.h"/' \ |
Christian Franke | 8f399b0 | 2013-09-30 12:27:50 +0000 | [diff] [blame] | 43 | -e 's/vtysh_init_cmd/test_init_cmd/' \ |
| 44 | -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \ |
| 45 | < ../vtysh/vtysh_cmd.c \ |
| 46 | > test-commands-defun.c |
| 47 | |
David Lamparter | e712d0e | 2014-04-01 19:34:55 +0200 | [diff] [blame] | 48 | BUILT_SOURCES = test-commands-defun.c |
David Lamparter | db93eec | 2015-05-05 11:04:59 +0200 | [diff] [blame] | 49 | noinst_HEADERS = prng.h tests.h common-cli.h |
David Lamparter | a83a1e9 | 2013-10-22 11:35:48 -0700 | [diff] [blame] | 50 | |
David Lamparter | db93eec | 2015-05-05 11:04:59 +0200 | [diff] [blame] | 51 | testcli_SOURCES = test-cli.c common-cli.c |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 52 | testsig_SOURCES = test-sig.c |
David Lamparter | 4d474fa | 2013-11-19 15:00:06 +0100 | [diff] [blame] | 53 | testsegv_SOURCES = test-segv.c |
paul | 4dcadf7 | 2005-04-13 03:31:35 +0000 | [diff] [blame] | 54 | testbuffer_SOURCES = test-buffer.c |
| 55 | testmemory_SOURCES = test-memory.c |
paul | 84771ee | 2005-10-11 03:48:28 +0000 | [diff] [blame] | 56 | testprivs_SOURCES = test-privs.c |
paul | 067fca8 | 2006-01-10 14:49:04 +0000 | [diff] [blame] | 57 | teststream_SOURCES = test-stream.c |
paul | 9f3f7a1 | 2005-04-25 16:42:24 +0000 | [diff] [blame] | 58 | heavy_SOURCES = heavy.c main.c |
| 59 | heavywq_SOURCES = heavy-wq.c main.c |
| 60 | heavythread_SOURCES = heavy-thread.c main.c |
paul | 1f377b0 | 2005-09-10 18:00:11 +0000 | [diff] [blame] | 61 | aspathtest_SOURCES = aspath_test.c |
Paul Jakma | 6d58272 | 2007-08-06 15:21:45 +0000 | [diff] [blame] | 62 | testbgpcap_SOURCES = bgp_capability_test.c |
Paul Jakma | 0b2aa3a | 2007-10-14 22:32:21 +0000 | [diff] [blame] | 63 | ecommtest_SOURCES = ecommunity_test.c |
Paul Jakma | 343f720 | 2008-06-07 20:32:38 +0000 | [diff] [blame] | 64 | testbgpmpattr_SOURCES = bgp_mp_attr_test.c |
Paul Jakma | 5d4b8cf | 2008-11-16 18:34:19 +0000 | [diff] [blame] | 65 | testchecksum_SOURCES = test-checksum.c |
Josh Bailey | 42ea685 | 2011-07-20 20:44:23 -0700 | [diff] [blame] | 66 | testbgpmpath_SOURCES = bgp_mpath_test.c |
Avneesh Sachdev | 28971c8 | 2012-08-17 08:19:50 -0700 | [diff] [blame] | 67 | tabletest_SOURCES = table_test.c |
Christian Franke | fa713d9 | 2013-07-05 15:35:37 +0000 | [diff] [blame] | 68 | testnexthopiter_SOURCES = test-nexthop-iter.c prng.c |
Christian Franke | 8f399b0 | 2013-09-30 12:27:50 +0000 | [diff] [blame] | 69 | testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c |
Christian Franke | ba32db1 | 2013-11-19 14:11:40 +0000 | [diff] [blame] | 70 | test_timer_correctness_SOURCES = test-timer-correctness.c prng.c |
| 71 | test_timer_performance_SOURCES = test-timer-performance.c prng.c |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 72 | |
David Lamparter | db93eec | 2015-05-05 11:04:59 +0200 | [diff] [blame] | 73 | testcli_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 74 | testsig_LDADD = ../lib/libzebra.la @LIBCAP@ |
David Lamparter | 4d474fa | 2013-11-19 15:00:06 +0100 | [diff] [blame] | 75 | testsegv_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 4dcadf7 | 2005-04-13 03:31:35 +0000 | [diff] [blame] | 76 | testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@ |
| 77 | testmemory_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 84771ee | 2005-10-11 03:48:28 +0000 | [diff] [blame] | 78 | testprivs_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 067fca8 | 2006-01-10 14:49:04 +0000 | [diff] [blame] | 79 | teststream_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 9f3f7a1 | 2005-04-25 16:42:24 +0000 | [diff] [blame] | 80 | heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
| 81 | heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
paul | 1d2c893 | 2005-04-22 00:54:44 +0000 | [diff] [blame] | 82 | heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
Avneesh Sachdev | d1d3ac9 | 2012-10-04 16:21:34 +0000 | [diff] [blame] | 83 | aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
| 84 | testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
| 85 | ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
| 86 | testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
Paul Jakma | 5d4b8cf | 2008-11-16 18:34:19 +0000 | [diff] [blame] | 87 | testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@ |
Avneesh Sachdev | d1d3ac9 | 2012-10-04 16:21:34 +0000 | [diff] [blame] | 88 | testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
Avneesh Sachdev | 28971c8 | 2012-08-17 08:19:50 -0700 | [diff] [blame] | 89 | tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
Christian Franke | fa713d9 | 2013-07-05 15:35:37 +0000 | [diff] [blame] | 90 | testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@ |
Christian Franke | 8f399b0 | 2013-09-30 12:27:50 +0000 | [diff] [blame] | 91 | testcommands_LDADD = ../lib/libzebra.la @LIBCAP@ |
Christian Franke | ba32db1 | 2013-11-19 14:11:40 +0000 | [diff] [blame] | 92 | test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@ |
| 93 | test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@ |