summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2014-12-05 12:34:27 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2014-12-10 16:04:34 +0000
commit629e15cf9961e1003b9ad70801193af44330a791 (patch)
treef526497a597fa609c79607f47d49d86d909f3724 /Makefile
parent20270b27bce1184bb0eaf243011893bf9fff13c7 (diff)
Allow to specify an alternate XML tests file
At the moment, it is not possible to change the XML tests file to use as it is hard-coded to 'tests/tests.xml' in the Makefile. This patch introduces a new build option 'TESTS_FILE' which allows to specify the path to an alternate tests file. This option defaults to 'tests/tests.xml'. Change-Id: Iddaafb4ba12dae677f3ffcbaf0608a884aefb221
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 52d2ca7..a4085f2 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,8 @@ PLAT := ${DEFAULT_PLAT}
BASE_COMMIT := origin/master
# Use non volatile memory for storing results
USE_NVM := 1
+# Path to the XML file listing the tests to run
+TESTS_FILE := tests/tests.xml
# Checkpatch ignores
CHECK_IGNORE = --ignore COMPLEX_MACRO --ignore GERRIT_CHANGE_ID
@@ -148,6 +150,11 @@ $(eval $(call add_define,USE_NVM))
$(eval $(call assert_boolean,SHELL_COLOR))
$(eval $(call add_define,SHELL_COLOR))
+# Check that the file pointed by $TESTS_FILE exists
+ifeq (,$(wildcard ${TESTS_FILE}))
+ $(error "The file TESTS_FILE points to cannot be found")
+endif
+
ifeq (${DEBUG},0)
$(eval $(call add_define,NDEBUG))
else
@@ -353,9 +360,9 @@ endef
$(AUTOGEN_DIR):
$(Q)mkdir -p "$@"
-$(AUTOGEN_DIR)/tests_list.c $(AUTOGEN_DIR)/tests_list.h: $(AUTOGEN_DIR) tests/tests.xml
+$(AUTOGEN_DIR)/tests_list.c $(AUTOGEN_DIR)/tests_list.h: $(AUTOGEN_DIR) ${TESTS_FILE}
@echo " AUTOGEN $$@"
- tools/generate_test_list/generate_test_list.pl $(AUTOGEN_DIR)/tests_list.c $(AUTOGEN_DIR)/tests_list.h tests/tests.xml $(PLAT_TESTS_SKIP_LIST)
+ tools/generate_test_list/generate_test_list.pl $(AUTOGEN_DIR)/tests_list.c $(AUTOGEN_DIR)/tests_list.h ${TESTS_FILE} $(PLAT_TESTS_SKIP_LIST)
$(eval $(call MAKE_IMG,tftf))