mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #6854 from gebart/pr/unittests-dir-wildcard
unittests: Refactor Makefile test wildcard matching line
This commit is contained in:
commit
117c9341ab
@ -19,7 +19,9 @@ BOARD_INSUFFICIENT_MEMORY := airfy-beacon arduino-duemilanove arduino-mega2560 \
|
||||
USEMODULE += embunit
|
||||
|
||||
ifeq (, $(filter tests-%, $(MAKECMDGOALS)))
|
||||
UNIT_TESTS := $(foreach d,$(wildcard tests-*/Makefile),$(shell dirname $(d)))
|
||||
# the $(dir) Makefile function leaves a trailing slash after the directory
|
||||
# name, therefore we use patsubst instead.
|
||||
UNIT_TESTS := $(patsubst %/Makefile,%,$(wildcard tests-*/Makefile))
|
||||
else
|
||||
UNIT_TESTS := $(filter tests-%, $(MAKECMDGOALS))
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user