diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-08-21 16:29:54 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-08-27 21:57:49 +0300 |
commit | 6d7cd639a5e4503f00162c7cfa4bc7302b82c71c (patch) | |
tree | 77c21e7a32258aaa1e2c49dd4c44983510a78045 /testlist.mk | |
parent | cfddec17d5a4ea2c3ce9afe0f15de3fa604dee63 (diff) | |
download | qmk_firmware-6d7cd639a5e4503f00162c7cfa4bc7302b82c71c.tar.gz qmk_firmware-6d7cd639a5e4503f00162c7cfa4bc7302b82c71c.zip |
Basic framework for parsing test targets
Diffstat (limited to 'testlist.mk')
-rw-r--r-- | testlist.mk | 13 |
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 @@ | |||
1 | include $(ROOT_DIR)/quantum/serial_link/tests/testlist.mk | ||
2 | |||
3 | define VALIDATE_TEST_LIST | ||
4 | ifneq ($1,) | ||
5 | ifeq ($$(findstring -,$1),-) | ||
6 | $$(error Test names can't contain '-', but '$1' does) | ||
7 | else | ||
8 | $$(eval $$(call VALIDATE_TEST_LIST,$$(firstword $2),$$(wordlist 2,9999,$2))) | ||
9 | endif | ||
10 | endif | ||
11 | endef | ||
12 | |||
13 | $(eval $(call VALIDATE_TEST_LIST,$(firstword $(TEST_LIST)),$(wordlist 2,9999,$(TEST_LIST)))) \ No newline at end of file | ||