Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 1 | # |
| 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. |
| 10 | ifneq ($(wildcard ${PLAT_PATH}/tests.xml),) |
| 11 | TESTS_FILE := ${PLAT_PATH}/tests.xml |
| 12 | else |
| 13 | TESTS_FILE := tftf/tests/tests-common.xml |
| 14 | endif |
| 15 | |
| 16 | # Check that the selected tests file exists. |
| 17 | ifeq (,$(wildcard ${TESTS_FILE})) |
| 18 | $(error "The file TESTS_FILE points to cannot be found") |
| 19 | endif |
| 20 | |
Sandrine Bailleux | fe6ff41 | 2018-10-16 10:20:38 +0200 | [diff] [blame^] | 21 | # Initialize variable before including all sub-makefiles that will append source |
| 22 | # files to it. |
| 23 | TESTS_SOURCES := |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 24 | |
Sandrine Bailleux | fe6ff41 | 2018-10-16 10:20:38 +0200 | [diff] [blame^] | 25 | include tftf/tests/tests-arm-state-switch.mk |
| 26 | include tftf/tests/tests-boot-req.mk |
| 27 | include tftf/tests/tests-cpu-extensions.mk |
| 28 | include tftf/tests/tests-el3-power-state.mk |
| 29 | include tftf/tests/tests-fwu.mk |
| 30 | include tftf/tests/tests-manual.mk |
| 31 | include tftf/tests/tests-performance.mk |
| 32 | include tftf/tests/tests-psci-extensive.mk |
| 33 | include tftf/tests/tests-psci.mk |
| 34 | include tftf/tests/tests-runtime-instrumentation.mk |
| 35 | include tftf/tests/tests-sdei.mk |
| 36 | include tftf/tests/tests-single-fault.mk |
| 37 | include tftf/tests/tests-spm.mk |
| 38 | include tftf/tests/tests-template.mk |
| 39 | include tftf/tests/tests-tftf-validation.mk |
| 40 | include tftf/tests/tests-tsp.mk |
| 41 | include tftf/tests/tests-uncontainable.mk |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 42 | |
Sandrine Bailleux | fe6ff41 | 2018-10-16 10:20:38 +0200 | [diff] [blame^] | 43 | # Some source files might be included by several test makefiles. |
| 44 | # Remove duplicate ones. |
| 45 | TESTS_SOURCES := $(sort ${TESTS_SOURCES}) |