From 710d371eb7e0fe63ceee18ba4337312b92a295c1 Mon Sep 17 00:00:00 2001 From: Lockywolf Date: Tue, 9 Sep 2025 10:09:43 +0200 Subject: [PATCH] Add convenience path/to/component target to tests/Makefile.in * test/Makefile.in (subdir_template): Add convenience targets. * test/README: Mention this. --- test/Makefile.in | 2 ++ test/README | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/Makefile.in b/test/Makefile.in index 20505432e31..127f1cebbd7 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -262,6 +262,8 @@ define subdir_template $(patsubst %,check-%,$(subst /,-,$(wildcard $(1)/*-tests))) @${MAKE} check LOGFILES="$(patsubst %.el,%.log, \ $(patsubst $(srcdir)/%,%,$(wildcard ${srcdir}/$(1)/*.el)))" + .PHONY: $(1) + $(1): check-$(subst /,-,$(1)) endef $(foreach subdir, $(SUBDIRS), $(eval $(call subdir_template,$(subdir)))) diff --git a/test/README b/test/README index a4ddccae742..f86aca58cc1 100644 --- a/test/README +++ b/test/README @@ -49,9 +49,12 @@ following targets: * make check-all Like "make check", but run all tests. -* make check- +* make Like "make check", but run only the tests in test//*.el and - test//*-tests/*.el. is a relative directory path, + test//*-tests/*.el. + +* make check- + Like "make ", but is a relative directory path, which has replaced "/" by "-", like in "check-src" or "check-lisp-net". * make -or- make .log