blob: 5f4dc165c012cc104f14eb3cefc180d75f19a239 [file] [log] [blame]
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +02001/*
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.
Tamas Bandc15bf42024-02-22 11:35:28 +010014 * `plat/arm/board/tc/rse_ap_tests.c` can call the test init functions with
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020015 * 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>