1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Merge pull request #6931 from AndrzejKurek/timeless-selftest-waz-bad

[2.28] Enable the timing.c selftest with MBEDTLS_TIMING_ALT
This commit is contained in:
Gilles Peskine
2023-01-26 21:55:44 +01:00
committed by GitHub
6 changed files with 508 additions and 4 deletions

View File

@ -2728,6 +2728,19 @@ component_test_no_date_time () {
make test
}
component_test_alt_timing() {
msg "build: alternate timing implementation"
scripts/config.py set MBEDTLS_TIMING_ALT
make lib TEST_TIMING_ALT_IMPL=1 CFLAGS="-I../tests/src/external_timing"
msg "test: MBEDTLS_TIMING_ALT - test suites"
make test TEST_TIMING_ALT_IMPL=1 CFLAGS="-I../tests/src/external_timing"
msg "selftest - MBEDTLS-TIMING_ALT"
make programs TEST_TIMING_ALT_IMPL=1 CFLAGS="-I../../tests/src/external_timing -I../tests/src/external_timing"
programs/test/selftest
}
component_test_platform_calloc_macro () {
msg "build: MBEDTLS_PLATFORM_{CALLOC/FREE}_MACRO enabled (ASan build)"
scripts/config.py set MBEDTLS_PLATFORM_MEMORY