]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tests: Let's use $(Q) instead of @
authorJorge Pereira <jpereira@freeradius.org>
Fri, 30 Jun 2023 21:51:32 +0000 (18:51 -0300)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 11 Jul 2023 14:07:03 +0000 (10:07 -0400)
It's helpful to troubleshoot.

src/tests/process/all.mk

index a68fad93578e71ed269929f3ea0d8e7ef9aab38e..23e5572ff2e75f4b5cc3461b8be0d865002b6fba 100644 (file)
@@ -35,7 +35,7 @@ $(eval $(call TEST_BOOTSTRAP))
 #  local dictionaries from "./dictionary".
 #
 src/tests/process/share/%: ${top_srcdir}/share/dictionary/%
-       @ln -sf $< $@
+       $(Q)ln -sf $< $@
 
 ifneq "$(OPENSSL_LIBS)" ""
 PROCESS_DICT_TLS := $(DIR)/share/tls
@@ -92,8 +92,8 @@ $(OUTPUT)/%: $(DIR)/% $(TEST_BIN_DIR)/unit_test_module $(DIR)/unit_test_module.c
        $(eval PROTOCOL_NAME=$(lastword $(subst /, ,$(dir $(abspath $@)))))
        $(eval CMD:=PROCESS=$< PROTOCOL=$(dir $<) $(TEST_BIN)/unit_test_module $(PROCESS_ARGS) -r "$@" -xx)
        @echo PROCESS-TEST $(PROTOCOL_NAME) $(notdir $@)
-       @mkdir -p $(dir $@)
-       @if ! $(CMD) > "$@.log" 2>&1 || ! test -f "$@"; then \
+       $(Q)mkdir -p $(dir $@)
+       $(Q)if ! $(CMD) > "$@.log" 2>&1 || ! test -f "$@"; then \
                cat $@.log; \
                echo "# $@.log"; \
                echo $(CMD); \
@@ -101,7 +101,7 @@ $(OUTPUT)/%: $(DIR)/% $(TEST_BIN_DIR)/unit_test_module $(DIR)/unit_test_module.c
        fi
 
 $(TEST):
-       @touch $(BUILD_DIR)/tests/$@
+       $(Q)touch $(BUILD_DIR)/tests/$@
 
 $(TEST).help:
-       @echo make $(TEST_PROCESS_HELP)
+       $(Q)echo make $(TEST_PROCESS_HELP)