summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2013-02-23 22:17:21 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2013-04-09 17:05:37 +0200
commitc095185c26f72bff14238ca1209ef6b2d7a8b935 (patch)
treeb6d9fa2ef2a225ff2c85d3d74dc1c94e327eeaab
parent4a014580ff85428aa41b28503554b2ce982805be (diff)
tests: make --disable-bgpd kill bgpd tests too
bgpd tests don't compile or run with --disable-bgpd, let's catch this in the Makefile. Reported-by: Joachim Nilsson <troglobit@gmail.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--tests/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cd6b2f1b..7bc880b5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -4,9 +4,15 @@ DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
AM_CFLAGS = $(PICFLAGS)
AM_LDFLAGS = $(PILDFLAGS)
+if BGPD
+TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
+else
+TESTS_BGPD =
+endif
+
noinst_PROGRAMS = testsig testbuffer testmemory heavy heavywq heavythread \
- aspathtest testprivs teststream testbgpcap ecommtest \
- testbgpmpattr testchecksum testbgpmpath tabletest
+ testprivs teststream testchecksum tabletest \
+ $(TESTS_BGPD)
testsig_SOURCES = test-sig.c
testbuffer_SOURCES = test-buffer.c