]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Disabling filter test unless needed protocols are configured
authorMaria Matejka <mq@ucw.cz>
Tue, 3 Dec 2024 19:08:23 +0000 (20:08 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 17 Dec 2024 08:28:38 +0000 (09:28 +0100)
filter/Makefile

index c20625346e9660fff33fe079aa1505bee87e1720..7eaf5ab4338d8f76495d628f32bffa427b9613a7 100644 (file)
@@ -17,7 +17,10 @@ $(o)inst-interpret.c: $(s)decl.m4 $(s)f-inst.c $(objdir)/.dir-stamp
 
 prepare: $(o)inst-interpret.c $(o)inst-gen.h
 
-tests_src := tree_test.c filter_test.c trie_test.c
+tests_src := tree_test.c trie_test.c
+ifeq ($(findstring bgp,$(protocols))-$(findstring static,$(protocols)),bgp-static)
+       tests_src += filter_test.c
+endif
 tests_targets := $(tests_targets) $(tests-target-files)
 tests_objs := $(tests_objs) $(src-o-files)