David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 1 | AUTOMAKE_OPTIONS = dejagnu |
| 2 | export DEJAGNU |
David Lamparter | c69905b | 2013-01-24 01:39:14 +0100 | [diff] [blame^] | 3 | DEJATOOL = libzebra |
David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 4 | |
David Lamparter | c69905b | 2013-01-24 01:39:14 +0100 | [diff] [blame^] | 5 | SUBDIRS = \ |
| 6 | bgpd.tests \ |
| 7 | libzebra.tests |
David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 8 | |
| 9 | EXTRA_DIST = \ |
| 10 | config/unix.exp \ |
David Lamparter | 5bb7e4d | 2013-02-26 17:53:30 +0100 | [diff] [blame] | 11 | lib/bgpd.exp \ |
David Lamparter | c69905b | 2013-01-24 01:39:14 +0100 | [diff] [blame^] | 12 | lib/libzebra.exp \ |
David Lamparter | f281ab9 | 2013-02-26 16:21:20 +0100 | [diff] [blame] | 13 | global-conf.exp |
| 14 | |
Vincent Bernat | 9e7a548 | 2012-05-22 14:32:22 +0200 | [diff] [blame] | 15 | INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 16 | DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\" |
| 17 | |
Paul P Komkoff Jr | 46bc0e4 | 2008-08-13 16:17:04 +0100 | [diff] [blame] | 18 | AM_CFLAGS = $(PICFLAGS) |
| 19 | AM_LDFLAGS = $(PILDFLAGS) |
| 20 | |
David Lamparter | c095185 | 2013-02-23 22:17:21 +0100 | [diff] [blame] | 21 | if BGPD |
| 22 | TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath |
David Lamparter | 5bb7e4d | 2013-02-26 17:53:30 +0100 | [diff] [blame] | 23 | DEJATOOL += bgpd |
David Lamparter | c095185 | 2013-02-23 22:17:21 +0100 | [diff] [blame] | 24 | else |
| 25 | TESTS_BGPD = |
| 26 | endif |
| 27 | |
paul | 1f377b0 | 2005-09-10 18:00:11 +0000 | [diff] [blame] | 28 | noinst_PROGRAMS = testsig testbuffer testmemory heavy heavywq heavythread \ |
David Lamparter | c095185 | 2013-02-23 22:17:21 +0100 | [diff] [blame] | 29 | testprivs teststream testchecksum tabletest \ |
| 30 | $(TESTS_BGPD) |
Paul Jakma | 343f720 | 2008-06-07 20:32:38 +0000 | [diff] [blame] | 31 | |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 32 | testsig_SOURCES = test-sig.c |
paul | 4dcadf7 | 2005-04-13 03:31:35 +0000 | [diff] [blame] | 33 | testbuffer_SOURCES = test-buffer.c |
| 34 | testmemory_SOURCES = test-memory.c |
paul | 84771ee | 2005-10-11 03:48:28 +0000 | [diff] [blame] | 35 | testprivs_SOURCES = test-privs.c |
paul | 067fca8 | 2006-01-10 14:49:04 +0000 | [diff] [blame] | 36 | teststream_SOURCES = test-stream.c |
paul | 9f3f7a1 | 2005-04-25 16:42:24 +0000 | [diff] [blame] | 37 | heavy_SOURCES = heavy.c main.c |
| 38 | heavywq_SOURCES = heavy-wq.c main.c |
| 39 | heavythread_SOURCES = heavy-thread.c main.c |
paul | 1f377b0 | 2005-09-10 18:00:11 +0000 | [diff] [blame] | 40 | aspathtest_SOURCES = aspath_test.c |
Paul Jakma | 6d58272 | 2007-08-06 15:21:45 +0000 | [diff] [blame] | 41 | testbgpcap_SOURCES = bgp_capability_test.c |
Paul Jakma | 0b2aa3a | 2007-10-14 22:32:21 +0000 | [diff] [blame] | 42 | ecommtest_SOURCES = ecommunity_test.c |
Paul Jakma | 343f720 | 2008-06-07 20:32:38 +0000 | [diff] [blame] | 43 | testbgpmpattr_SOURCES = bgp_mp_attr_test.c |
Paul Jakma | 5d4b8cf | 2008-11-16 18:34:19 +0000 | [diff] [blame] | 44 | testchecksum_SOURCES = test-checksum.c |
Josh Bailey | 42ea685 | 2011-07-20 20:44:23 -0700 | [diff] [blame] | 45 | testbgpmpath_SOURCES = bgp_mpath_test.c |
Avneesh Sachdev | 28971c8 | 2012-08-17 08:19:50 -0700 | [diff] [blame] | 46 | tabletest_SOURCES = table_test.c |
paul | 41c14a1 | 2004-07-26 19:27:51 +0000 | [diff] [blame] | 47 | |
| 48 | testsig_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 4dcadf7 | 2005-04-13 03:31:35 +0000 | [diff] [blame] | 49 | testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@ |
| 50 | testmemory_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 84771ee | 2005-10-11 03:48:28 +0000 | [diff] [blame] | 51 | testprivs_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 067fca8 | 2006-01-10 14:49:04 +0000 | [diff] [blame] | 52 | teststream_LDADD = ../lib/libzebra.la @LIBCAP@ |
paul | 9f3f7a1 | 2005-04-25 16:42:24 +0000 | [diff] [blame] | 53 | heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
| 54 | heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
paul | 1d2c893 | 2005-04-22 00:54:44 +0000 | [diff] [blame] | 55 | heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |
Avneesh Sachdev | d1d3ac9 | 2012-10-04 16:21:34 +0000 | [diff] [blame] | 56 | aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
| 57 | testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
| 58 | ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
| 59 | testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
Paul Jakma | 5d4b8cf | 2008-11-16 18:34:19 +0000 | [diff] [blame] | 60 | testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@ |
Avneesh Sachdev | d1d3ac9 | 2012-10-04 16:21:34 +0000 | [diff] [blame] | 61 | testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm |
Avneesh Sachdev | 28971c8 | 2012-08-17 08:19:50 -0700 | [diff] [blame] | 62 | tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm |