From: Alan T. DeKok Date: Wed, 7 Sep 2022 20:26:57 +0000 (-0400) Subject: notes on how to quickly find failing tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1df033517523855eb76c8354a1e879e75f8d0502;p=thirdparty%2Ffreeradius-server.git notes on how to quickly find failing tests --- diff --git a/src/tests/keywords/all.mk b/src/tests/keywords/all.mk index b3737bfc430..bca67649447 100644 --- a/src/tests/keywords/all.mk +++ b/src/tests/keywords/all.mk @@ -107,6 +107,11 @@ KEYWORD_LIBS := $(addsuffix .la,$(addprefix rlm_,$(KEYWORD_MODULES))) rlm_csv.la # # NOTE: Grepping for $< is not safe cross platform, as on Linux it # expands to the full absolute path, and on macOS it appears to be relative. +# +# To quickly find all failing tests, run: +# +# (make -k test.keywords 2>&1) | grep 'KEYWORD=' | sed 's/KEYWORD=//;s/ .*$//' +# $(OUTPUT)/%: $(DIR)/% $(TEST_BIN_DIR)/unit_test_module | $(KEYWORD_RADDB) $(KEYWORD_LIBS) build.raddb rlm_test.la rlm_csv.la rlm_unpack.la $(eval CMD:=KEYWORD=$(notdir $@) $(TEST_BIN)/unit_test_module $(NEW_COND) $(UNIT_TEST_KEYWORD_ARGS.$(subst -,_,$(notdir $@))) -D share/dictionary -d src/tests/keywords/ -i "$@.attrs" -f "$@.attrs" -r "$@" -xx) @echo "KEYWORD-TEST $(notdir $@)"