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>
diff --git a/tests/scripts/components-configuration-platform.sh b/tests/scripts/components-configuration-platform.sh
index cadd140..ade207a 100644
--- a/tests/scripts/components-configuration-platform.sh
+++ b/tests/scripts/components-configuration-platform.sh
@@ -20,6 +20,20 @@
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).