]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add rules to allow the running of only one test
authorAlan T. DeKok <aland@freeradius.org>
Wed, 13 Mar 2024 01:35:56 +0000 (21:35 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 13 Mar 2024 02:16:39 +0000 (22:16 -0400)
src/tests/radclient/all.mk

index 3f5ec32c548a10482a37650f6f9f3b10f4b4e96f..3bec606566b759e08993f8667c268c53e5dd7b03 100644 (file)
@@ -32,6 +32,14 @@ $(eval $(call RADIUSD_SERVICE,radiusd,$(OUTPUT)))
 
 $(OUTPUT)/auth_proxy.txt: $(BUILD_DIR)/lib/local/rlm_radius.la
 
+define RADCLIENT_TEST
+test.radclient.$(basename ${1}): $(addprefix $(OUTPUT)/,${1})
+
+test.radclient.help: TEST_RADCLIENT_HELP += test.radclient.$(basename ${1})
+endef
+
+$(foreach x,$(FILES),$(eval $(call RADCLIENT_TEST, $x)))
+
 #
 #      Run the radclient commands against the radiusd.
 #
@@ -106,3 +114,6 @@ $(OUTPUT)/%: $(DIR)/% $(BUILD_DIR)/bin/local/$(RADCLIENT) $(BUILD_DIR)/lib/local
 $(TEST):
        ${Q}$(MAKE) --no-print-directory $@.radiusd_stop
        @touch $(BUILD_DIR)/tests/$@
+
+$(TEST).help:
+       @echo make $(TEST_RADCLIENT_HELP)