mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-20 15:47:57 +00:00
Add a build with MBEDTLS_ERROR_STRERROR_DUMMY
Add a build with MBEDTLS_ERROR_STRERROR_DUMMY but not MBEDTLS_ERROR_C. Previously, both options were enabled by default, but MBEDTLS_ERROR_STRERROR_DUMMY only matters when MBEDTLS_ERROR_C is enabled, so its effect was not tested. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -1501,6 +1501,20 @@ component_test_no_64bit_multiplication () {
|
|||||||
make test
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
|
component_test_no_strings () {
|
||||||
|
msg "build: no strings" # ~10s
|
||||||
|
scripts/config.pl full
|
||||||
|
# Disable options that activate a large amount of string constants.
|
||||||
|
scripts/config.pl unset MBEDTLS_DEBUG_C
|
||||||
|
scripts/config.pl unset MBEDTLS_ERROR_C
|
||||||
|
scripts/config.pl set MBEDTLS_ERROR_STRERROR_DUMMY
|
||||||
|
scripts/config.pl unset MBEDTLS_VERSION_FEATURES
|
||||||
|
make CFLAGS='-Werror -Os'
|
||||||
|
|
||||||
|
msg "test: no strings" # ~ 10s
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
component_build_arm_none_eabi_gcc () {
|
component_build_arm_none_eabi_gcc () {
|
||||||
msg "build: ${ARM_NONE_EABI_GCC_PREFIX}gcc -O1" # ~ 10s
|
msg "build: ${ARM_NONE_EABI_GCC_PREFIX}gcc -O1" # ~ 10s
|
||||||
scripts/config.pl baremetal
|
scripts/config.pl baremetal
|
||||||
|
|||||||
Reference in New Issue
Block a user