blob: 3a4e42fde13943ac21814584bb297b758d22559d [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
Sandrine Bailleuxfe6ff412018-10-16 10:20:38 +020021# Initialize variable before including all sub-makefiles that will append source
22# files to it.
23TESTS_SOURCES :=
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020024
Sandrine Bailleuxfe6ff412018-10-16 10:20:38 +020025include tftf/tests/tests-arm-state-switch.mk
26include tftf/tests/tests-boot-req.mk
27include tftf/tests/tests-cpu-extensions.mk
28include tftf/tests/tests-el3-power-state.mk
29include tftf/tests/tests-fwu.mk
30include tftf/tests/tests-manual.mk
31include tftf/tests/tests-performance.mk
32include tftf/tests/tests-psci-extensive.mk
33include tftf/tests/tests-psci.mk
34include tftf/tests/tests-runtime-instrumentation.mk
35include tftf/tests/tests-sdei.mk
36include tftf/tests/tests-single-fault.mk
37include tftf/tests/tests-spm.mk
38include tftf/tests/tests-template.mk
39include tftf/tests/tests-tftf-validation.mk
40include tftf/tests/tests-tsp.mk
41include tftf/tests/tests-uncontainable.mk
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020042
Sandrine Bailleuxfe6ff412018-10-16 10:20:38 +020043# Some source files might be included by several test makefiles.
44# Remove duplicate ones.
45TESTS_SOURCES := $(sort ${TESTS_SOURCES})