]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: make --disable-bgpd kill bgpd tests too
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 23 Feb 2013 21:17:21 +0000 (22:17 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 9 Apr 2013 15:05:37 +0000 (17:05 +0200)
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>
tests/Makefile.am

index cd6b2f1b4fc5eb3a0fa409c965b9ce8b7e4cd914..7bc880b5f73ff27224c14b6a0dfb654eccafb202 100644 (file)
@@ -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