From: Alan T. DeKok Date: Wed, 13 Mar 2024 01:35:56 +0000 (-0400) Subject: add rules to allow the running of only one test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a774b2fb1e94c56707b472edf5f14094fa63d690;p=thirdparty%2Ffreeradius-server.git add rules to allow the running of only one test --- diff --git a/src/tests/radclient/all.mk b/src/tests/radclient/all.mk index 3f5ec32c548..3bec606566b 100644 --- a/src/tests/radclient/all.mk +++ b/src/tests/radclient/all.mk @@ -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)