1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18770 from miri64/makefiles/enh/test-executor

build-system: add capability to execute scripts with custom executor
This commit is contained in:
Martine Lenders 2022-10-20 07:52:03 +02:00 committed by GitHub
commit a535e44cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: