]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow verbosity only where is important (#3114)
authorJorge Pereira <jpereira@users.noreply.github.com>
Mon, 11 Nov 2019 17:33:03 +0000 (14:33 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 11 Nov 2019 17:33:03 +0000 (11:33 -0600)
src/tests/auth/all.mk
src/tests/bin/all.mk
src/tests/dict/all.mk
src/tests/eapol_test/all.mk
src/tests/keywords/all.mk
src/tests/map/all.mk
src/tests/unit/all.mk
src/tests/xlat/all.mk

index 78cad7d9ba221cfab47c05ce14962ec410841ba4..8baa0e41b7a5954544774807b9d77088f4a3d091 100644 (file)
@@ -93,7 +93,7 @@ AUTH_LIBS     := $(addsuffix .la,$(addprefix rlm_,$(AUTH_MODULES)))
 #  ERROR line in the input.
 #
 $(OUTPUT)/%: $(DIR)/% $(OUTPUT)/%.attrs $(TESTBINDIR)/unit_test_module | $(AUTH_RADDB) $(AUTH_LIBS) build.raddb
-       ${Q}echo AUTH-TEST $(notdir $@)
+       @echo "AUTH-TEST $(notdir $@)"
        ${Q}if ! TESTDIR=$(notdir $@) $(TESTBIN)/unit_test_module -D share/dictionary -d src/tests/auth/ -i "$@.attrs" -f "$@.attrs" -r "$@" -xx > "$@.log" 2>&1 || ! test -f "$@"; then \
                if ! grep ERROR $< 2>&1 > /dev/null; then \
                        cat $@.log; \
index 300bcdf958f21f1e3d957ef987b3f53890526a31..f55f900e281ee5cd7befd672e8ca0fdb54532010 100644 (file)
@@ -27,7 +27,7 @@ $(eval $(call TEST_BOOTSTRAP))
 #  that we're running
 #
 $(BUILD_DIR)/tests/bin/%: $(DIR)/% %
-       ${Q}echo BIN-TEST $(notdir $@)
+       @echo "BIN-TEST $(notdir $@)"
        ${Q}if ! TESTBIN="$(TESTBIN)" DICT_DIR="$(top_srcdir)/share/dictionary" $<; then \
                echo TESTBIN=\"$(TESTBIN)\" DICT_DIR="$(top_srcdir)/share/dictionary" $<; \
                exit 1; \
index 1ff105e084ea99b9667960d7221494445ffc1f84..764e4d1f2c0fa21ab985d40568a0e6b78504ae4a 100644 (file)
@@ -16,7 +16,7 @@ $(eval $(call TEST_BOOTSTRAP))
 #  "foo_dir" directory, and copy "foo" into "foo_dir/dictionary"
 #
 $(OUTPUT)/%: $(DIR)/% $(TESTBINDIR)/unit_test_attribute
-       ${Q}echo DICT-TEST $(notdir $@)
+       @echo "DICT-TEST $(notdir $@)"
        ${Q}mkdir -p $@_dir
        ${Q}cp $< $@_dir/dictionary
        ${Q}if ! $(TESTBIN)/unit_test_attribute -D $(top_srcdir)/share/dictionary -d "$@_dir" -r "$@" -xxx "$(dir $<)/empty.txt" > "$@.log" 2>&1 || ! test -f "$@"; then \
index 56093c23db457a846d49ea19cce698768ccfde73..7490bae2ea752c528f09c2fbf07af5850440d1e0 100644 (file)
@@ -48,7 +48,7 @@ $(eval $(call RADIUSD_SERVICE,servers,$(OUTPUT)))
 #      Print the disabled list.
 #
 $(IGNORED_EAP_TYPES):
-       ${Q}echo "EAPOL_TEST $@ - Disabled.  Enable by removing '$@' from 'IGNORED_EAP_TYPES' in src/tests/eapol_test/all.mk"
+       @echo "EAPOL_TEST $@ - Disabled.  Enable by removing '$@' from 'IGNORED_EAP_TYPES' in src/tests/eapol_test/all.mk"
 
 #
 #  Separate the dependencies here just to keep a bit clear.
@@ -64,7 +64,7 @@ $(OUTPUT)/%.ok: $(DIR)/%.conf | $(GENERATED_CERT_FILES)
        ${Q} [ -f $(dir $@)/radiusd.pid ] || exit 1
        $(eval OUT := $(patsubst %.conf,%.log,$@))
        $(eval KEY := $(shell grep key_mgmt=NONE $< | sed 's/key_mgmt=NONE/-n/'))
-       ${Q}echo EAPOL_TEST $(notdir $(patsubst %.conf,%,$<))
+       @echo "EAPOL_TEST $(notdir $(patsubst %.conf,%,$<))"
        ${Q}if ! $(EAPOL_TEST) -t 2 -c $< -p $(PORT) -s $(SECRET) $(KEY) > $(OUT) 2>&1; then    \
                echo "Last entries in supplicant log ($(patsubst %.conf,%.log,$@)):";   \
                tail -n 40 "$(patsubst %.conf,%.log,$@)";                               \
@@ -97,5 +97,5 @@ $(shell touch "$(OUTPUT)/eapol_test.skip")
 endif
 
 $(TEST): $(OUTPUT)
-       ${Q}echo "Retry with: $(MAKE) clean.$@ && $(MAKE) $@"
+       @echo "Retry with: $(MAKE) clean.$@ && $(MAKE) $@"
 endif
index ac5c0425f53b049c690008f20624e011fe4212c4..07b644a426dd0b75a0129e76482bc9c53dedad8d 100644 (file)
@@ -101,7 +101,7 @@ KEYWORD_LIBS        := $(addsuffix .la,$(addprefix rlm_,$(KEYWORD_MODULES))) rlm_exampl
 #  ERROR line in the input.
 #
 $(OUTPUT)/%: $(DIR)/% $(TESTBINDIR)/unit_test_module | $(KEYWORD_RADDB) $(KEYWORD_LIBS) build.raddb rlm_cache_rbtree.la rlm_test.la rlm_csv.la
-       ${Q}echo KEYWORD-TEST $(notdir $@)
+       @echo "KEYWORD-TEST $(notdir $@)"
        ${Q}if [ -f $<.attrs ] ; then \
                cp $<.attrs $(BUILD_DIR)/tests/keywords/; \
        else \
index b2ff0ae0c51d6fd08c004cafc080f784155767e4..0fc95fcdb8d3ba83825046514afeee4aa43d3ddb 100644 (file)
@@ -24,7 +24,7 @@ MAP_UNIT := $(TESTBIN)/unit_test_map
 #      Re-run the tests if the input file changes
 #
 $(OUTPUT)/%: $(DIR)/% $(TESTBINDIR)/unit_test_map
-       ${Q}echo MAP-TEST $(notdir $<)
+       @echo "MAP-TEST $(notdir $<)"
        ${Q}if ! $(MAP_UNIT) -d $(top_srcdir)/raddb -D $(top_srcdir)/share/dictionary -r "$@" "$<" > "$@.log" 2>&1 || ! test -f "$@"; then \
                if ! grep ERROR $< 2>&1 > /dev/null; then \
                        cat "$@.log"; \
index b67a2761513f8290124f4d7da72fef970c49d949..a0fec373c54123a75657ee9ac10c607a6a9a05a8 100644 (file)
@@ -34,7 +34,7 @@ $(FILES.$(TEST)): export TZ = GMT
 #
 $(OUTPUT)/%: $(DIR)/% $(TESTBINDIR)/unit_test_attribute
        $(eval DIR:=${top_srcdir}/src/tests/unit)
-       ${Q}echo UNIT-TEST $(subst $(DIR)/,,$<)
+       @echo "UNIT-TEST $(subst $(DIR)/,,$<)"
        ${Q}if ! $(TESTBIN)/unit_test_attribute -D $(top_srcdir)/share/dictionary -d $(DIR) -r "$@" $<; then \
                echo "$(TESTBIN)/unit_test_attribute -D $(top_srcdir)/share/dictionary -d $(DIR) -r \"$@\" $<"; \
                rm -f $(BUILD_DIR)/tests/test.unit; \
index 34a23605e292ccdfbaf2822f3b16ae2d3c5cf620..bffa5d38c7d101c6004c878406d9283e42f778f5 100644 (file)
@@ -21,7 +21,7 @@ $(eval $(call TEST_BOOTSTRAP))
 #  And the actual script to run each test.
 #
 $(OUTPUT)/%: $(DIR)/% $(TESTBINDIR)/unit_test_module | build.raddb
-       ${Q}echo XLAT-TEST $(notdir $@)
+       @echo "XLAT-TEST $(notdir $@)"
        ${Q}if ! $(TESTBIN)/unit_test_module -D share/dictionary -d src/tests/xlat/ -r "$@" -i "$<" -xx -O xlat_only > "$@.log" 2>&1 || ! test -f "$@"; then \
                cat $@.log; \
                echo "./$(TESTBIN)/unit_test_module -D share/dictionary -d src/tests/xlat/ -r \"$@\" -i \"$<\" -xx -O xlat_only"; \