Skip to content

Commit

Permalink
Merge pull request #18770 from miri64/makefiles/enh/test-executor
Browse files Browse the repository at this point in the history
build-system: add capability to execute scripts with custom executor
  • Loading branch information
miri64 authored Oct 20, 2022
2 parents d759d2d + 14b7abd commit a535e44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion makefiles/tests/tests.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ TESTS ?= $(foreach file,$(wildcard $(APPDIR)/tests/*[^~]),\
# this. In order to make local builds behave similar, add the term deps here.
# See #11762.
TEST_DEPS += $(TERMDEPS)
# these variables can be used to use e.g. pytest to execute the tests instead of
# executing them as a script
TEST_EXECUTOR ?=
TEST_EXECUTOR_FLAGS ?=

test: $(TEST_DEPS)
$(Q) for t in $(TESTS); do \
$$t || exit 1; \
$(TEST_EXECUTOR) $(TEST_EXECUTOR_FLAGS) $$t || exit 1; \
done

test/available:
Expand Down

0 comments on commit a535e44

Please # to comment.