summaryrefslogtreecommitdiff
path: root/testlist.mk
diff options
context:
space:
mode:
authorCallum Oakley2016-09-01 17:55:00 +0100
committerCallum Oakley2016-09-01 17:55:00 +0100
commit9c3193f22555119eb15f63f5ae5efe45e6d7358c (patch)
treea0dcfb3ed442c12a66b444c4c579711660c30657 /testlist.mk
parent993d72b11fca8d50296570dc85e9354f8045c4a6 (diff)
parente28d151a8a1d458f3c18897c6095decc17b0c3a1 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'testlist.mk')
-rw-r--r--testlist.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/testlist.mk b/testlist.mk
new file mode 100644
index 000000000..1884d6d3f
--- /dev/null
+++ b/testlist.mk
@@ -0,0 +1,13 @@
+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