]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tests: Print out the module and test name
authorJorge Pereira <jpereira@freeradius.org>
Wed, 28 Jun 2023 15:11:26 +0000 (12:11 -0300)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 11 Jul 2023 14:07:03 +0000 (10:07 -0400)
src/tests/process/all.mk

index 0fc6fb96f55541233956ee60fedcf1022bcc1e85..a68fad93578e71ed269929f3ea0d8e7ef9aab38e 100644 (file)
@@ -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; \