Split tests makefile
Instead of unconditionally pulling all test source files in tests.mk,
introduce small makefiles that pull in only those source files that
are required to test a particular feature. For every tests manifest
(test-*.xml files), create the associated makefile.
The main benefit is to compile only the required test source files
when selecting a subset of the tests. For example, if one selects the
SDEI XML file, the TFTF binary only needs the SDEI test cases.
Change-Id: I281eb50846edea2d238c86a795fde8747f8b420b
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
diff --git a/tftf/tests/tests-psci.mk b/tftf/tests/tests-psci.mk
new file mode 100644
index 0000000..0be0cef
--- /dev/null
+++ b/tftf/tests/tests-psci.mk
@@ -0,0 +1,26 @@
+#
+# Copyright (c) 2018, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+TESTS_SOURCES += \
+ $(addprefix tftf/tests/runtime_services/standard_service/, \
+ query_std_svc.c \
+ unknown_smc.c \
+ )
+
+TESTS_SOURCES += \
+ $(addprefix tftf/tests/runtime_services/standard_service/psci/api_tests/, \
+ affinity_info/test_psci_affinity_info.c \
+ cpu_hotplug/test_psci_hotplug.c \
+ cpu_hotplug/test_psci_hotplug_invalid.c \
+ cpu_suspend/test_suspend.c \
+ mem_protect_check/mem_protect_check.c \
+ migrate_info_type/test_migrate_info_type.c \
+ psci_features/test_psci_features.c \
+ psci_node_hw_state/test_node_hw_state.c \
+ psci_stat/test_psci_stat.c \
+ psci_version/test_psci_version.c \
+ system_suspend/test_psci_system_suspend.c \
+ )