From: Alan T. DeKok Date: Tue, 7 Dec 2021 16:29:57 +0000 (-0500) Subject: allow "make test.keywords.foo" to run a particular test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af6743a0c99048de449f6dcdff1b7c1b26538f1;p=thirdparty%2Ffreeradius-server.git allow "make test.keywords.foo" to run a particular test --- diff --git a/src/tests/keywords/all.mk b/src/tests/keywords/all.mk index bfa1ef8ebd3..660b0b59039 100644 --- a/src/tests/keywords/all.mk +++ b/src/tests/keywords/all.mk @@ -31,6 +31,14 @@ endif $(eval $(call TEST_BOOTSTRAP)) +# +# For sheer laziness, allow "make test.keywords.foo" +# +define KEYWORD_TEST +test.keywords.${1}: $(addprefix $(OUTPUT)/,${1}) +endef +$(foreach x,$(FILES),$(eval $(call KEYWORD_TEST,$x))) + # # For each file, look for precursor test. # Ensure that each test depends on its precursors.