1 /*
2  * Copyright (c) 2022, Arm Ltd. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * `delegated_attest_ns_interface_testsuite.c` and
9  * `measured_boot_ns_interface_testsuite.c` are not added to the build directly.
10  * but are included in this file, and this file is added to the build. This is
11  * necessary because both files define the function `extra_tests_init`, so a
12  * linker error occurs when both are linked to BL31. This file defines a macro
13  * that renames the colliding function names to something unique.
14  * `plat/arm/board/tc/rse_ap_tests.c` can call the test init functions with
15  * their new name.
16  */
17 
18 #define register_testsuite_extra_ns_interface \
19 	register_testsuite_delegated_attest
20 #include <delegated_attest_ns_interface_testsuite.c>
21 
22 #undef register_testsuite_extra_ns_interface
23 #define register_testsuite_extra_ns_interface \
24 	register_testsuite_measured_boot
25 #include <measured_boot_ns_interface_testsuite.c>