summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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))