mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
build-system: add capability to execute scripts with custom executor
This commit is contained in:
parent
07c04bc0e3
commit
14b7abda95
@ -17,10 +17,14 @@ TESTS ?= $(foreach file,$(wildcard $(APPDIR)/tests/*[^~]),\
|
|||||||
# this. In order to make local builds behave similar, add the term deps here.
|
# this. In order to make local builds behave similar, add the term deps here.
|
||||||
# See #11762.
|
# See #11762.
|
||||||
TEST_DEPS += $(TERMDEPS)
|
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)
|
test: $(TEST_DEPS)
|
||||||
$(Q) for t in $(TESTS); do \
|
$(Q) for t in $(TESTS); do \
|
||||||
$$t || exit 1; \
|
$(TEST_EXECUTOR) $(TEST_EXECUTOR_FLAGS) $$t || exit 1; \
|
||||||
done
|
done
|
||||||
|
|
||||||
test/available:
|
test/available:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user