As recently anticipated, the Trusted Firmware-A Tests code has now been released as an open-source project under the TrustedFirmware.org community project initiative.
The Trusted Firmware-A Tests (TF-A-Tests) is a suite of bare-metal tests to exercise the Trusted Firmware-A (TF-A) features from the Normal world. It enables strong TF-A functional testing without dependency on a Rich OS, mainly interacting with TF-A through its SMC interface.
The initially released software (labelled as version 2.0) includes testing of the following TF-A features (the list is not exhaustive):
- SMC Calling Convention
- Power State Coordination Interface (PSCI)
- Software Delegated Exception Interface (SDEI)
- Performance Measurement Framework (PMF)
- Communication and interaction with the Test Secure Payload (TSP)
- Firmware update(or recovery mode)
- EL3 payload boot flow
- Secure partition support
The v2.0 release has been tested on Arm Fixed Virtual Platforms and Juno platforms (r0, r1 and r2 variants). More information about the content of this first release can be found in the change log.
Though these tests do not currently allow a full test coverage of the TF-A codebase nor do they constitute a compliance test suite for the Arm interface standards used in TF-A (such as PSCI), they nonetheless provide a strong basis for TF-A developers to validate their own platform ports and add their own test cases. All TF-A adopters are anyway encouraged to develop and perform their own comprehensive tests to validate and assess their production codebase and hardware/firmware features.
Other useful resources to get started with TF-A-Tests include:
- The User Guide for instructions on how to install, build and use the TF-A Tests.
- The Design Guide for information on how the TF-A Tests internally work.
- The Porting Guide for information about how to use this software on another Armv8-A platform.
- The official Mailing List for project’s discussion.
In line with the parent TF-A project, the TF-A-Tests open-source code is released under a BSD 3-Clause license and contributions to the project are accepted under the same license with developer sign-off as described in the Contributing Guidelines.
Everyone is welcome in contributing to it and if you would like to know more about TF-A-Tests and the wider TrustedFirmware.org community project, please get in touch with email@example.com for more details.