1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-06-23 21:50:34 +08:00

tests: scripts: add new component to configuration-platform.sh

Import component_test_platform_get_entropy_alt() from its counterpart
in TF-PSA-Crypto repo.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2025-05-06 06:27:02 +02:00
parent 0f0304d433
commit 1afedacfea

View File

@ -20,6 +20,20 @@ component_build_no_std_function () {
make
}
component_test_platform_get_entropy_alt()
{
msg "build: default config + MBEDTLS_PLATFORM_GET_ENTROPY_ALT"
# Use hardware polling as the only source for entropy
scripts/config.py set MBEDTLS_PLATFORM_GET_ENTROPY_ALT
scripts/config.py unset MBEDTLS_ENTROPY_NV_SEED
make
# Run all the tests
msg "test: default config + MBEDTLS_PLATFORM_GET_ENTROPY_ALT"
make test
}
component_build_no_sockets () {
# Note, C99 compliance can also be tested with the sockets support disabled,
# as that requires a POSIX platform (which isn't the same as C99).