mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 09:52:43 +01:00
tests/unittests: allow passing UNIT_TESTS
via env
This commit is contained in:
parent
8573faba5c
commit
bf768cbccb
@ -3,12 +3,14 @@ include ../Makefile.tests_common
|
|||||||
|
|
||||||
USEMODULE += embunit
|
USEMODULE += embunit
|
||||||
|
|
||||||
ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
ifeq (, $(UNIT_TESTS))
|
||||||
# the $(dir) Makefile function leaves a trailing slash after the directory
|
ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
||||||
# name, therefore we use patsubst instead.
|
# the $(dir) Makefile function leaves a trailing slash after the directory
|
||||||
UNIT_TESTS := $(patsubst %/Makefile,%,$(wildcard tests-*/Makefile))
|
# name, therefore we use patsubst instead.
|
||||||
else
|
UNIT_TESTS := $(patsubst %/Makefile,%,$(wildcard tests-*/Makefile))
|
||||||
UNIT_TESTS := $(filter tests-%, $(MAKECMDGOALS))
|
else
|
||||||
|
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