mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 17:32:44 +01:00
tests/unittests: allow passing UNIT_TESTS
via env
This commit is contained in:
parent
8573faba5c
commit
bf768cbccb
@ -3,6 +3,7 @@ include ../Makefile.tests_common
|
|||||||
|
|
||||||
USEMODULE += embunit
|
USEMODULE += embunit
|
||||||
|
|
||||||
|
ifeq (, $(UNIT_TESTS))
|
||||||
ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
||||||
# the $(dir) Makefile function leaves a trailing slash after the directory
|
# the $(dir) Makefile function leaves a trailing slash after the directory
|
||||||
# name, therefore we use patsubst instead.
|
# name, therefore we use patsubst instead.
|
||||||
@ -10,6 +11,7 @@ ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
|||||||
else
|
else
|
||||||
UNIT_TESTS := $(filter tests-%, $(MAKECMDGOALS))
|
UNIT_TESTS := $(filter tests-%, $(MAKECMDGOALS))
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
DISABLE_MODULE += auto_init auto_init_%
|
DISABLE_MODULE += auto_init auto_init_%
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user