PSA defines security service APIs for application developers. Some of these services are Crypto Services, Attestation Services, and Secure Storage Services. For more information on API specification, refer the PSA Developer facing APIs specifications
The Architecture Test Suite is a set of examples of the invariant behaviours that are specified by the PSA Developer APIs Specifications. Use this suite to verify that these behaviours are implemented correctly in your system.
The Architecture Test Suite contains the tests that are self-checking, portable C-based tests with directed stimulus.
The tests are available as open source. The tests and the corresponding abstraction layers are available with an Apache v2.0 license allowing for external contribution. This test suite is not a substitute for design verification. To review the test logs, Arm licensees can contact Arm directly through their partner managers.
For more information on Architecture Test Suite specification, refer the Validation Methodology document.
The mapping of the rules in the specification to the test cases and the steps followed in the tests are mentioned in the Scenario document present in the docs/ folder.
Follow the instructions in the subsequent sections to get a copy of the source code on your local machine and build the tests.
Please make sure you have all required software installed as explained in the software requirements.
Refer to the PSA Developer APIs Test Suite Porting Guide document for porting steps.
To build test suite for a given platform, execute the following commands:
cd api-tests ./tools/scripts/setup.sh --target <platform_name> --cpu_arch <cpu_architecture_version> --suite <suite_name> --build <build_dir> --include <include_path>
where:
Refer ./tools/scripts/setup.sh --help to know more about options.
To compile crypto tests for tgt_dev_apis_mbedos_fvp_mps2_m4 platform
cd api-tests ./tools/scripts/setup.sh --target tgt_dev_apis_mbedos_fvp_mps2_m4 --cpu_arch armv7m --suite crypto --build BUILD_CRYPTO --include <include_path>
Test suite build generates following binaries:
NSPE libraries:
The following steps describe the execution flow prior to the start of test execution:
Arm PSA test suite is distributed under Apache v2.0 License.
Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved.