Browse Source

Merge pull request #6854 from gebart/pr/unittests-dir-wildcard

unittests: Refactor Makefile test wildcard matching line
pr/rotary
Martine Lenders 6 years ago committed by GitHub
parent
commit
117c9341ab
  1. 4
      tests/unittests/Makefile

4
tests/unittests/Makefile

@ -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…
Cancel
Save