From: David Lamparter Date: Sat, 23 Feb 2013 21:17:21 +0000 (+0100) Subject: tests: make --disable-bgpd kill bgpd tests too X-Git-Tag: frr-2.0-rc1~1676 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c095185c26f72bff14238ca1209ef6b2d7a8b935;p=mirror%2Ffrr.git 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 Signed-off-by: David Lamparter --- diff --git a/tests/Makefile.am b/tests/Makefile.am index cd6b2f1b4f..7bc880b5f7 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