diff options
Diffstat (limited to 'testlist.mk')
-rw-r--r-- | testlist.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testlist.mk b/testlist.mk new file mode 100644 index 0000000000..d949fb3eae --- /dev/null +++ b/testlist.mk @@ -0,0 +1,17 @@ +TEST_LIST = $(notdir $(patsubst %/rules.mk,%,$(wildcard $(ROOT_DIR)/tests/*/rules.mk))) +FULL_TESTS := $(TEST_LIST) + +include $(ROOT_DIR)/quantum/serial_link/tests/testlist.mk + +define VALIDATE_TEST_LIST + ifneq ($1,) + ifeq ($$(findstring -,$1),-) + $$(error Test names can't contain '-', but '$1' does) + else + $$(eval $$(call VALIDATE_TEST_LIST,$$(firstword $2),$$(wordlist 2,9999,$2))) + endif + endif +endef + + +$(eval $(call VALIDATE_TEST_LIST,$(firstword $(TEST_LIST)),$(wordlist 2,9999,$(TEST_LIST))))
\ No newline at end of file |