# 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; \
# 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; \
# "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 \
# 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.
${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,$@)"; \
endif
$(TEST): $(OUTPUT)
- ${Q}echo "Retry with: $(MAKE) clean.$@ && $(MAKE) $@"
+ @echo "Retry with: $(MAKE) clean.$@ && $(MAKE) $@"
endif
# 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 \
# 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"; \
#
$(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; \
# 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"; \