From: Alan T. DeKok Date: Tue, 19 Jan 2021 14:08:15 +0000 (-0500) Subject: add "test.unit.PROTOCOL" target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f78af1ece7e832a088010a830b712e33942aba8;p=thirdparty%2Ffreeradius-server.git add "test.unit.PROTOCOL" target for utter laziness --- diff --git a/src/tests/unit/all.mk b/src/tests/unit/all.mk index fabb6a2e9ca..c90b60288b2 100644 --- a/src/tests/unit/all.mk +++ b/src/tests/unit/all.mk @@ -45,10 +45,11 @@ $(FILES.$(TEST)): export TZ = GMT PROTOCOLS := $(subst $(DIR)/protocols/,,$(wildcard $(DIR)/protocols/*)) define UNIT_TEST_PROTOCOLS $(addprefix $(OUTPUT)/,$(filter protocols/${1}/%.txt,$(FILES))): $(wildcard $(top_srcdir)/share/dictionary/${1}/dictionary*) $(BUILD_DIR)/lib/libfreeradius-${1}.la + +test.unit.${1}: $(addprefix $(OUTPUT)/,$(filter protocols/${1}/%.txt,$(FILES))) endef $(foreach x,$(PROTOCOLS),$(eval $(call UNIT_TEST_PROTOCOLS,$x))) - #export ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) #export ASAN_OPTIONS=malloc_context_size=50 detect_leaks=1 symbolize=1 #export LSAN_OPTIONS=print_suppressions=0 fast_unwind_on_malloc=0