]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
notes on how to quickly find failing tests
authorAlan T. DeKok <aland@freeradius.org>
Wed, 7 Sep 2022 20:26:57 +0000 (16:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 14 Sep 2022 02:05:15 +0000 (22:05 -0400)
src/tests/keywords/all.mk

index b3737bfc430bc171f41efe15ce98a2b5e914d0fc..bca6764944785bf19e74d6cdbe3d3ea8bfd2d7c1 100644 (file)
@@ -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 $@)"