1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Run the PSA Compliance test suite in all.sh

This commit adds a component to all.sh which clones, builds and runs the
compliance test suite.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
Bence Szépkúti
2021-10-19 15:05:36 +02:00
parent 95c3971c81
commit 9f84911d55
2 changed files with 109 additions and 0 deletions

View File

@ -2842,6 +2842,19 @@ component_test_zeroize () {
unset gdb_disable_aslr
}
component_test_psa_compliance () {
msg "build: make, default config (out-of-box), libmbedcrypto.a only"
make library/libmbedcrypto.a
msg "unit test: test_psa_compliance.py"
./tests/scripts/test_psa_compliance.py
}
support_test_psa_compliance () {
local ver=($(cmake --version | sed 's/cmake version //; y/./ /; q'))
[ "${ver[0]}" -eq 3 ] && [ "${ver[1]}" -ge 10 ]
}
component_check_python_files () {
msg "Lint: Python scripts"
tests/scripts/check-python-files.sh