1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Add convenience path/to/component target to tests/Makefile.in

* test/Makefile.in (subdir_template): Add convenience targets.

* test/README: Mention this.
This commit is contained in:
Lockywolf 2025-09-09 10:09:43 +02:00 committed by Michael Albinus
parent 4c74b68fb1
commit 710d371eb7
2 changed files with 7 additions and 2 deletions

View file

@ -262,6 +262,8 @@ define subdir_template
$(patsubst %,check-%,$(subst /,-,$(wildcard $(1)/*-tests))) $(patsubst %,check-%,$(subst /,-,$(wildcard $(1)/*-tests)))
@${MAKE} check LOGFILES="$(patsubst %.el,%.log, \ @${MAKE} check LOGFILES="$(patsubst %.el,%.log, \
$(patsubst $(srcdir)/%,%,$(wildcard ${srcdir}/$(1)/*.el)))" $(patsubst $(srcdir)/%,%,$(wildcard ${srcdir}/$(1)/*.el)))"
.PHONY: $(1)
$(1): check-$(subst /,-,$(1))
endef endef
$(foreach subdir, $(SUBDIRS), $(eval $(call subdir_template,$(subdir)))) $(foreach subdir, $(SUBDIRS), $(eval $(call subdir_template,$(subdir))))

View file

@ -49,9 +49,12 @@ following targets:
* make check-all * make check-all
Like "make check", but run all tests. Like "make check", but run all tests.
* make check-<dirname> * make <dirname>
Like "make check", but run only the tests in test/<dirname>/*.el and Like "make check", but run only the tests in test/<dirname>/*.el and
test/<dirname>/*-tests/*.el. <dirname> is a relative directory path, test/<dirname>/*-tests/*.el.
* make check-<dirname>
Like "make <dirname>", but <dirname> is a relative directory path,
which has replaced "/" by "-", like in "check-src" or "check-lisp-net". which has replaced "/" by "-", like in "check-src" or "check-lisp-net".
* make <filename> -or- make <filename>.log * make <filename> -or- make <filename>.log