The Trusted Firmware-A Tests (TF-A-Tests) is a suite of baremetal 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. It mainly interacts with TF-A through its SMC interface.
It provides a basis for TF-A developers to validate their own platform ports and add their own test cases.
The following TF-A features are currently tested to some extent (this list is not exhaustive):
- SMC Calling Convention
- Power State Coordination Interface (PSCI)
- Software Delegated Exception Interface (SDEI)
- Performance Measurement Framework (PMF) (see section "Performance Measurement Framework" in the TF-A Firmware Design Guide
- Communication and interaction with the Test Secure Payload (TSP)
- Firmware update (or recovery mode)
- EL3 payload boot flow (see the section "EL3 payloads alternative boot flow" in the TF-A User Guide)
- Secure partition support
These tests are not a compliance test suite for the Arm interface standards used in TF-A (such as PSCI).
They do not cover 100% of the TF-A code. The fact that all tests pass does not mean that TF-A is free of bugs.
They are not reference code. They should not be considered as the official way to test hardware/firmware features. Instead, they are provided as example code to experiment with and improve on.