mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 06:19:56 +00:00

This patch adds Delegated Attestation and Measured Boot tests to the plat/arm/board/tc platform. The test suite can be activated by adding the build time option `PLATFORM_TEST=1` to the make command. In this case the boot sequence is not finished, plat_error_handler is called after the tests are run (regardless of the test result.) The actual test code is coming from the Trusted-Firmware-M project. Some of the files of the tf-m-tests and tf-m-extras repo are linked to the BL31 image. Versions used for testing: https://git.trustedfirmware.org/TF-M/tf-m-tests 614e8c358377e4146e8ee13d1246e59d01b4bf1b https: //git.trustedfirmware.org/TF-M/tf-m-extras 3be9fdd557e6df449de93c2101973fb011699b3d Change-Id: I98f0f5f760a39d2d7e0dd11d33663ddb75f0b6fc Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
25 lines
No EOL
956 B
C
25 lines
No EOL
956 B
C
/*
|
|
* Copyright (c) 2022, Arm Ltd. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/*
|
|
* `delegated_attest_ns_interface_testsuite.c` and
|
|
* `measured_boot_ns_interface_testsuite.c` are not added to the build directly.
|
|
* but are included in this file, and this file is added to the build. This is
|
|
* necessary because both files define the function `extra_tests_init`, so a
|
|
* linker error occurs when both are linked to BL31. This file defines a macro
|
|
* that renames the colliding function names to something unique.
|
|
* `plat/arm/board/tc/rss_ap_tests.c` can call the test init functions with
|
|
* their new name.
|
|
*/
|
|
|
|
#define register_testsuite_extra_ns_interface \
|
|
register_testsuite_delegated_attest
|
|
#include <delegated_attest_ns_interface_testsuite.c>
|
|
|
|
#undef register_testsuite_extra_ns_interface
|
|
#define register_testsuite_extra_ns_interface \
|
|
register_testsuite_measured_boot
|
|
#include <measured_boot_ns_interface_testsuite.c> |