1097e7d37STamas Ban /* 2097e7d37STamas Ban * Copyright (c) 2022, Arm Ltd. All rights reserved. 3097e7d37STamas Ban * 4097e7d37STamas Ban * SPDX-License-Identifier: BSD-3-Clause 5097e7d37STamas Ban */ 6097e7d37STamas Ban 7097e7d37STamas Ban /* 8097e7d37STamas Ban * `delegated_attest_ns_interface_testsuite.c` and 9097e7d37STamas Ban * `measured_boot_ns_interface_testsuite.c` are not added to the build directly. 10097e7d37STamas Ban * but are included in this file, and this file is added to the build. This is 11097e7d37STamas Ban * necessary because both files define the function `extra_tests_init`, so a 12097e7d37STamas Ban * linker error occurs when both are linked to BL31. This file defines a macro 13097e7d37STamas Ban * that renames the colliding function names to something unique. 14*7f8589cdSTamas Ban * `plat/arm/board/tc/rse_ap_tests.c` can call the test init functions with 15097e7d37STamas Ban * their new name. 16097e7d37STamas Ban */ 17097e7d37STamas Ban 18097e7d37STamas Ban #define register_testsuite_extra_ns_interface \ 19097e7d37STamas Ban register_testsuite_delegated_attest 20097e7d37STamas Ban #include <delegated_attest_ns_interface_testsuite.c> 21097e7d37STamas Ban 22097e7d37STamas Ban #undef register_testsuite_extra_ns_interface 23097e7d37STamas Ban #define register_testsuite_extra_ns_interface \ 24097e7d37STamas Ban register_testsuite_measured_boot 25097e7d37STamas Ban #include <measured_boot_ns_interface_testsuite.c>