blob: 8ee8cc2482889e36e85ffcbf7129b3ed503503a0 [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001#
2# Copyright (c) 2018, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Path to the XML file listing the tests to run. If there is a platform-specific
8# test file, use it. If not, use the common one. If the user specified another
9# one, use that one instead.
10ifneq ($(wildcard ${PLAT_PATH}/tests.xml),)
11 TESTS_FILE := ${PLAT_PATH}/tests.xml
12else
13 TESTS_FILE := tftf/tests/tests-common.xml
14endif
15
16# Check that the selected tests file exists.
17ifeq (,$(wildcard ${TESTS_FILE}))
18 $(error "The file TESTS_FILE points to cannot be found")
19endif
20
21SPM_TESTS_SOURCES := \
22 $(addprefix tftf/tests/runtime_services/secure_service/, \
23 secure_service_helpers.c \
24 test_secure_service_handle.c \
25 test_secure_service_interrupts.c \
26 )
27
28FWU_TESTS_SOURCES := \
29 tftf/tests/fwu_tests/test_fwu_toc.c \
30 tftf/tests/fwu_tests/test_fwu_auth.c \
31 plat/common/fwu_nvm_accessors.c
32
33TESTS_SOURCES := $(addprefix tftf/tests/, \
34 extensions/amu/test_amu.c \
35 framework_validation_tests/test_timer_framework.c \
36 framework_validation_tests/test_validation_events.c \
37 framework_validation_tests/test_validation_irq.c \
38 framework_validation_tests/test_validation_nvm.c \
39 framework_validation_tests/test_validation_sgi.c \
40 misc_tests/inject_serror.S \
41 misc_tests/test_single_fault.c \
42 misc_tests/test_uncontainable.c \
43 performance_tests/smc_latencies.c \
44 misc_tests/boot_req_tests/test_cntfrq.c \
45 runtime_services/arm_arch_svc/smccc_arch_workaround_1.c \
46 runtime_services/arm_arch_svc/smccc_arch_workaround_2.c \
47 runtime_services/sip_service/test_exec_state_switch.c \
48 runtime_services/sip_service/test_exec_state_switch_asm.S \
49 runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c \
50 runtime_services/standard_service/psci/api_tests/affinity_info/test_psci_affinity_info.c \
51 runtime_services/standard_service/psci/api_tests/cpu_hotplug/test_psci_hotplug.c \
52 runtime_services/standard_service/psci/api_tests/cpu_hotplug/test_psci_hotplug_invalid.c \
53 runtime_services/standard_service/psci/api_tests/cpu_suspend/test_suspend.c \
54 runtime_services/standard_service/psci/api_tests/migrate_info_type/test_migrate_info_type.c \
55 runtime_services/standard_service/psci/api_tests/psci_features/test_psci_features.c \
56 runtime_services/standard_service/psci/api_tests/psci_node_hw_state/test_node_hw_state.c \
57 runtime_services/standard_service/psci/api_tests/psci_stat/test_psci_stat.c \
58 runtime_services/standard_service/psci/api_tests/psci_version/test_psci_version.c \
59 runtime_services/standard_service/psci/api_tests/system_off/test_system_off.c \
60 runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c \
61 runtime_services/standard_service/psci/api_tests/validate_power_state/test_validate_power_state.c \
62 runtime_services/standard_service/psci/system_tests/test_psci_hotplug_stress.c \
63 runtime_services/standard_service/psci/system_tests/test_psci_on_off_suspend_stress.c \
64 runtime_services/standard_service/psci/system_tests/test_psci_system_suspend_stress.c \
65 runtime_services/standard_service/psci/api_tests/mem_protect/test_mem_protect.c \
66 runtime_services/standard_service/psci/api_tests/mem_protect_check/mem_protect_check.c \
67 runtime_services/standard_service/psci/api_tests/reset2/reset2.c \
68 runtime_services/standard_service/query_std_svc.c \
69 runtime_services/standard_service/unknown_smc.c \
70 runtime_services/standard_service/sdei/system_tests/sdei_entrypoint.S \
71 runtime_services/standard_service/sdei/system_tests/test_sdei.c \
72 runtime_services/standard_service/sdei/system_tests/test_sdei_state.c \
73 runtime_services/trusted_os/tsp/test_irq_preempted_std_smc.c \
74 runtime_services/trusted_os/tsp/test_normal_int_switch.c \
75 runtime_services/trusted_os/tsp/test_smc_tsp_std_fn_call.c \
76 runtime_services/trusted_os/tsp/test_tsp_fast_smc.c \
77)
78
79TESTS_SOURCES += ${SPM_TESTS_SOURCES} \
80 ${FWU_TESTS_SOURCES}
81
82# The following source files are part of the "template" testsuite, which aims
83# at providing template test code as a starting point for developing new tests.
84# They don't do anything useful in terms of testing so they are disabled by
85# default. Uncomment those lines along with the corresponding test suite XML
86# node in the tests/tests.xml file to enable them.
87# TESTS_SOURCES += tftf/tests/template_tests/test_template_single_core.c \
88# tftf/tests/template_tests/test_template_multi_core.c