From 6db604711db6df1f9f41bdded93bb9a1eb8cb21e Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Wed, 5 Jul 2023 16:38:42 +0200 Subject: [PATCH] Add a new test component to test the new bignum interface with `TEST_HOOKS` Signed-off-by: Gabor Mezei --- tests/scripts/all.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index d2ea9b68f..622ec7b2a 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1118,6 +1118,20 @@ component_test_full_cmake_gcc_asan_new_bignum () { full-libmbedx509-modules } +component_test_full_cmake_gcc_asan_new_bignum_test_hooks () { + msg "build: full config, cmake, gcc, ASan" + scripts/config.py full + scripts/config.py set MBEDTLS_TEST_HOOKS + CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan . + make CFLAGS="-DMBEDTLS_ECP_WITH_MPI_UINT" + + msg "test: main suites (inc. selftests) (full config, ASan build)" + make test + + msg "test: selftest (ASan build)" # ~ 10s + programs/test/selftest +} + component_test_psa_crypto_key_id_encodes_owner () { msg "build: full config + PSA_CRYPTO_KEY_ID_ENCODES_OWNER, cmake, gcc, ASan" scripts/config.py full