mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Add support for recursively running all tests
This commit is contained in:
parent
d048bb4888
commit
fa23a65b81
@ -147,6 +147,7 @@ endif
|
|||||||
#
|
#
|
||||||
|
|
||||||
clean-test:
|
clean-test:
|
||||||
|
test-default:
|
||||||
|
|
||||||
ifdef TEST_PROGS
|
ifdef TEST_PROGS
|
||||||
$(TEST_PROGS): $(TESTDEPS) $$@.o
|
$(TEST_PROGS): $(TESTDEPS) $$@.o
|
||||||
@ -157,7 +158,7 @@ TESTS = $(wildcard test-*)
|
|||||||
$(TESTS): $(TEST_PROGS)
|
$(TESTS): $(TEST_PROGS)
|
||||||
@echo "*** $@ ***"; $(call shellquote,$(SHELL)) $@ $(TEST_OPTS)
|
@echo "*** $@ ***"; $(call shellquote,$(SHELL)) $@ $(TEST_OPTS)
|
||||||
|
|
||||||
test: $(TESTS)
|
test-default: $(TESTS)
|
||||||
|
|
||||||
clean-test:
|
clean-test:
|
||||||
@rm -fr trash
|
@rm -fr trash
|
||||||
@ -190,9 +191,9 @@ endif
|
|||||||
|
|
||||||
# Recursion:
|
# Recursion:
|
||||||
|
|
||||||
.PHONY: all-recursive install-recursive clean-recursive cleanall-recursive init-recursive check-recursive
|
.PHONY: all-recursive install-recursive clean-recursive cleanall-recursive init-recursive check-recursive test-recursive
|
||||||
|
|
||||||
all-recursive install-recursive clean-recursive cleanall-recursive init-recursive check-recursive:
|
all-recursive install-recursive clean-recursive cleanall-recursive init-recursive check-recursive test-recursive:
|
||||||
ifdef SUBDIRS
|
ifdef SUBDIRS
|
||||||
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
||||||
$(call ncmd,recmake,$(subdir),$(subst -recursive,,$@)) || exit 1;)
|
$(call ncmd,recmake,$(subdir),$(subst -recursive,,$@)) || exit 1;)
|
||||||
@ -202,6 +203,7 @@ all: all-recursive all-default all-local
|
|||||||
install: install-recursive install-default install-local
|
install: install-recursive install-default install-local
|
||||||
check: check-recursive check-default check-local
|
check: check-recursive check-default check-local
|
||||||
clean: clean-recursive clean-default clean-local
|
clean: clean-recursive clean-default clean-local
|
||||||
|
test: test-recursive test-default test-local
|
||||||
|
|
||||||
cleanall: cleanall-recursive cleanall-default
|
cleanall: cleanall-recursive cleanall-default
|
||||||
init: init-default init-recursive
|
init: init-default init-recursive
|
||||||
@ -210,6 +212,7 @@ all-local:
|
|||||||
install-local:
|
install-local:
|
||||||
clean-local:
|
clean-local:
|
||||||
check-local:
|
check-local:
|
||||||
|
test-local:
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
@ -6,7 +6,4 @@ OBJS = node.o select.o stack.o scanner.o
|
|||||||
|
|
||||||
SUBDIRS-$(CONFIG_DEBUG) += test
|
SUBDIRS-$(CONFIG_DEBUG) += test
|
||||||
|
|
||||||
test: all
|
|
||||||
make test -C test
|
|
||||||
|
|
||||||
include $(top_srcdir)/Makefile.lib
|
include $(top_srcdir)/Makefile.lib
|
||||||
|
Loading…
Reference in New Issue
Block a user