blob: 5e631d6a861c34435a4198fbba045c9cd5a87c4c [file] [log] [blame]
David Lamparterf281ab92013-02-26 16:21:20 +01001AUTOMAKE_OPTIONS = dejagnu
David Lamparterc69905b2013-01-24 01:39:14 +01002DEJATOOL = libzebra
David Lamparterf281ab92013-02-26 16:21:20 +01003
David Lamparterc69905b2013-01-24 01:39:14 +01004SUBDIRS = \
5 bgpd.tests \
6 libzebra.tests
David Lamparterf281ab92013-02-26 16:21:20 +01007
8EXTRA_DIST = \
9 config/unix.exp \
David Lamparter5bb7e4d2013-02-26 17:53:30 +010010 lib/bgpd.exp \
David Lamparterc69905b2013-01-24 01:39:14 +010011 lib/libzebra.exp \
David Lamparterf281ab92013-02-26 16:21:20 +010012 global-conf.exp
13
Vincent Bernat9e7a5482012-05-22 14:32:22 +020014INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
paul41c14a12004-07-26 19:27:51 +000015DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
16
Paul P Komkoff Jr46bc0e42008-08-13 16:17:04 +010017AM_CFLAGS = $(PICFLAGS)
18AM_LDFLAGS = $(PILDFLAGS)
19
David Lamparterc0951852013-02-23 22:17:21 +010020if BGPD
21TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
David Lamparter5bb7e4d2013-02-26 17:53:30 +010022DEJATOOL += bgpd
David Lamparterc0951852013-02-23 22:17:21 +010023else
24TESTS_BGPD =
25endif
26
David Lamparter4d474fa2013-11-19 15:00:06 +010027check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
Christian Frankefa713d92013-07-05 15:35:37 +000028 testprivs teststream testchecksum tabletest testnexthopiter \
David Lamparterc0951852013-02-23 22:17:21 +010029 $(TESTS_BGPD)
Paul Jakma343f7202008-06-07 20:32:38 +000030
David Lampartera83a1e92013-10-22 11:35:48 -070031noinst_HEADERS = prng.h
32
paul41c14a12004-07-26 19:27:51 +000033testsig_SOURCES = test-sig.c
David Lamparter4d474fa2013-11-19 15:00:06 +010034testsegv_SOURCES = test-segv.c
paul4dcadf72005-04-13 03:31:35 +000035testbuffer_SOURCES = test-buffer.c
36testmemory_SOURCES = test-memory.c
paul84771ee2005-10-11 03:48:28 +000037testprivs_SOURCES = test-privs.c
paul067fca82006-01-10 14:49:04 +000038teststream_SOURCES = test-stream.c
paul9f3f7a12005-04-25 16:42:24 +000039heavy_SOURCES = heavy.c main.c
40heavywq_SOURCES = heavy-wq.c main.c
41heavythread_SOURCES = heavy-thread.c main.c
paul1f377b02005-09-10 18:00:11 +000042aspathtest_SOURCES = aspath_test.c
Paul Jakma6d582722007-08-06 15:21:45 +000043testbgpcap_SOURCES = bgp_capability_test.c
Paul Jakma0b2aa3a2007-10-14 22:32:21 +000044ecommtest_SOURCES = ecommunity_test.c
Paul Jakma343f7202008-06-07 20:32:38 +000045testbgpmpattr_SOURCES = bgp_mp_attr_test.c
Paul Jakma5d4b8cf2008-11-16 18:34:19 +000046testchecksum_SOURCES = test-checksum.c
Josh Bailey42ea6852011-07-20 20:44:23 -070047testbgpmpath_SOURCES = bgp_mpath_test.c
Avneesh Sachdev28971c82012-08-17 08:19:50 -070048tabletest_SOURCES = table_test.c
Christian Frankefa713d92013-07-05 15:35:37 +000049testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
paul41c14a12004-07-26 19:27:51 +000050
51testsig_LDADD = ../lib/libzebra.la @LIBCAP@
David Lamparter4d474fa2013-11-19 15:00:06 +010052testsegv_LDADD = ../lib/libzebra.la @LIBCAP@
paul4dcadf72005-04-13 03:31:35 +000053testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
54testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
paul84771ee2005-10-11 03:48:28 +000055testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
paul067fca82006-01-10 14:49:04 +000056teststream_LDADD = ../lib/libzebra.la @LIBCAP@
paul9f3f7a12005-04-25 16:42:24 +000057heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
58heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
paul1d2c8932005-04-22 00:54:44 +000059heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
Avneesh Sachdevd1d3ac92012-10-04 16:21:34 +000060aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
61testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
62ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
63testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
Paul Jakma5d4b8cf2008-11-16 18:34:19 +000064testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
Avneesh Sachdevd1d3ac92012-10-04 16:21:34 +000065testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
Avneesh Sachdev28971c82012-08-17 08:19:50 -070066tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
Christian Frankefa713d92013-07-05 15:35:37 +000067testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@