From: Jorge Pereira Date: Wed, 28 Jun 2023 15:11:26 +0000 (-0300) Subject: tests: Print out the module and test name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4fc7e1e8885fedc96e529fe8d1581c227952f95;p=thirdparty%2Ffreeradius-server.git tests: Print out the module and test name --- diff --git a/src/tests/process/all.mk b/src/tests/process/all.mk index 0fc6fb96f55..a68fad93578 100644 --- a/src/tests/process/all.mk +++ b/src/tests/process/all.mk @@ -89,8 +89,9 @@ PROCESS_ARGS += -S use_new_conditions=yes -S forbid_update=yes PROCESS_ARGS += -i $(DIR)/test.attrs -f $(DIR)/test.attrs $(OUTPUT)/%: $(DIR)/% $(TEST_BIN_DIR)/unit_test_module $(DIR)/unit_test_module.conf + $(eval PROTOCOL_NAME=$(lastword $(subst /, ,$(dir $(abspath $@))))) $(eval CMD:=PROCESS=$< PROTOCOL=$(dir $<) $(TEST_BIN)/unit_test_module $(PROCESS_ARGS) -r "$@" -xx) - @echo PROCESS-TEST $(notdir $@) + @echo PROCESS-TEST $(PROTOCOL_NAME) $(notdir $@) @mkdir -p $(dir $@) @if ! $(CMD) > "$@.log" 2>&1 || ! test -f "$@"; then \ cat $@.log; \