]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow "make test.keywords.foo" to run a particular test
authorAlan T. DeKok <aland@freeradius.org>
Tue, 7 Dec 2021 16:29:57 +0000 (11:29 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 7 Dec 2021 16:29:57 +0000 (11:29 -0500)
src/tests/keywords/all.mk

index bfa1ef8ebd3f9aa4831db358b345d48e6f398496..660b0b59039db53d79c7af85f2b508737a42fbc5 100644 (file)
@@ -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.