bugfix to fxt_type_2 (2)
[jackhill/qmk/firmware.git] / testlist.mk
CommitLineData
30f22d45
FS
1TEST_LIST = $(notdir $(patsubst %/rules.mk,%,$(wildcard $(ROOT_DIR)/tests/*/rules.mk)))
2FULL_TESTS := $(TEST_LIST)
3
6d7cd639
FS
4include $(ROOT_DIR)/quantum/serial_link/tests/testlist.mk
5
6define VALIDATE_TEST_LIST
7 ifneq ($1,)
8 ifeq ($$(findstring -,$1),-)
9 $$(error Test names can't contain '-', but '$1' does)
10 else
11 $$(eval $$(call VALIDATE_TEST_LIST,$$(firstword $2),$$(wordlist 2,9999,$2)))
12 endif
13 endif
14endef
15
30f22d45 16
6d7cd639 17$(eval $(call VALIDATE_TEST_LIST,$(firstword $(TEST_LIST)),$(wordlist 2,9999,$(TEST_LIST))))