testlist.mk 603 B

123456789101112131415161718
  1. TEST_LIST = $(notdir $(patsubst %/rules.mk,%,$(wildcard $(ROOT_DIR)/tests/*/rules.mk)))
  2. FULL_TESTS := $(TEST_LIST)
  3. include $(ROOT_DIR)/quantum/sequencer/tests/testlist.mk
  4. include $(ROOT_DIR)/quantum/serial_link/tests/testlist.mk
  5. define VALIDATE_TEST_LIST
  6. ifneq ($1,)
  7. ifeq ($$(findstring -,$1),-)
  8. $$(error Test names can't contain '-', but '$1' does)
  9. else
  10. $$(eval $$(call VALIDATE_TEST_LIST,$$(firstword $2),$$(wordlist 2,9999,$2)))
  11. endif
  12. endif
  13. endef
  14. $(eval $(call VALIDATE_TEST_LIST,$(firstword $(TEST_LIST)),$(wordlist 2,9999,$(TEST_LIST))))