mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -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:
parent
4c74b68fb1
commit
710d371eb7
2 changed files with 7 additions and 2 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
|
|
@ -49,9 +49,12 @@ following targets:
|
|||
* make check-all
|
||||
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
|
||||
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".
|
||||
|
||||
* make <filename> -or- make <filename>.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue