From 67eb38682804b7e9fe9543b2b75cdbfc670cab0d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 3 Dec 2024 20:08:23 +0100 Subject: [PATCH] Disabling filter test unless needed protocols are configured --- filter/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filter/Makefile b/filter/Makefile index c2062534..7eaf5ab4 100644 --- a/filter/Makefile +++ b/filter/Makefile @@ -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)