]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add "test.unit.PROTOCOL" target
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jan 2021 14:08:15 +0000 (09:08 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jan 2021 14:08:15 +0000 (09:08 -0500)
for utter laziness

src/tests/unit/all.mk

index fabb6a2e9ca9ba03ccfd6cb48005ab15102c53b4..c90b60288b24893e2c682a710edca89646386f94 100644 (file)
@@ -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