rse_ap_testsuites.c 956 B

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