@@ -679,7 +679,6 @@ component_test_everest () {
679
679
component_test_psa_collect_statuses () {
680
680
msg " build+test: psa_collect_statuses" # ~30s
681
681
scripts/config.py full
682
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # slow and irrelevant
683
682
record_status tests/scripts/psa_collect_statuses.py
684
683
# Check that psa_crypto_init() succeeded at least once
685
684
record_status grep -q ' ^0:psa_crypto_init:' tests/statuses.log
@@ -689,7 +688,6 @@ component_test_psa_collect_statuses () {
689
688
component_test_full_cmake_clang () {
690
689
msg " build: cmake, full config, clang" # ~ 50s
691
690
scripts/config.py full
692
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
693
691
CC=clang cmake -D CMAKE_BUILD_TYPE:String=Check -D ENABLE_TESTING=On .
694
692
make
695
693
@@ -703,7 +701,6 @@ component_test_full_cmake_clang () {
703
701
component_test_full_make_gcc_o0 () {
704
702
msg " build: make, full config, gcc -O0" # ~ 50s
705
703
scripts/config.py full
706
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
707
704
make CC=gcc CFLAGS=' -O0'
708
705
709
706
msg " test: main suites (full config, gcc -O0)" # ~ 5s
@@ -758,7 +755,6 @@ component_test_no_use_psa_crypto_full_cmake_asan() {
758
755
# full minus MBEDTLS_USE_PSA_CRYPTO: run the same set of tests as basic-build-test.sh
759
756
msg " build: cmake, full config minus MBEDTLS_USE_PSA_CRYPTO, ASan"
760
757
scripts/config.py full
761
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
762
758
scripts/config.py set MBEDTLS_ECP_RESTARTABLE # not using PSA, so enable restartable ECC
763
759
scripts/config.py set MBEDTLS_PSA_CRYPTO_C
764
760
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
@@ -776,7 +772,6 @@ component_test_check_params_functionality () {
776
772
scripts/config.py full # includes CHECK_PARAMS
777
773
# Make MBEDTLS_PARAM_FAILED call mbedtls_param_failed().
778
774
scripts/config.py unset MBEDTLS_CHECK_PARAMS_ASSERT
779
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
780
775
# Only build and run tests. Do not build sample programs, because
781
776
# they don't have a mbedtls_param_failed() function.
782
777
make CC=gcc CFLAGS=' -Werror -O1' lib test
@@ -786,8 +781,6 @@ component_test_check_params_without_platform () {
786
781
msg " build+test: MBEDTLS_CHECK_PARAMS without MBEDTLS_PLATFORM_C"
787
782
scripts/config.py full # includes CHECK_PARAMS
788
783
# Keep MBEDTLS_PARAM_FAILED as assert.
789
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
790
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
791
784
scripts/config.py unset MBEDTLS_PLATFORM_EXIT_ALT
792
785
scripts/config.py unset MBEDTLS_PLATFORM_TIME_ALT
793
786
scripts/config.py unset MBEDTLS_PLATFORM_FPRINTF_ALT
@@ -802,7 +795,6 @@ component_test_check_params_without_platform () {
802
795
component_test_check_params_silent () {
803
796
msg " build+test: MBEDTLS_CHECK_PARAMS with alternative MBEDTLS_PARAM_FAILED()"
804
797
scripts/config.py full # includes CHECK_PARAMS
805
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
806
798
# Set MBEDTLS_PARAM_FAILED to nothing.
807
799
sed -i ' s/.*\(#define MBEDTLS_PARAM_FAILED( cond )\).*/\1/' " $CONFIG_H "
808
800
make CC=gcc CFLAGS=' -Werror -O1' all test
@@ -822,7 +814,6 @@ component_test_no_platform () {
822
814
scripts/config.py unset MBEDTLS_PLATFORM_TIME_ALT
823
815
scripts/config.py unset MBEDTLS_PLATFORM_EXIT_ALT
824
816
scripts/config.py unset MBEDTLS_ENTROPY_NV_SEED
825
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
826
817
scripts/config.py unset MBEDTLS_FS_IO
827
818
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C
828
819
scripts/config.py unset MBEDTLS_PSA_CRYPTO_STORAGE_C
@@ -872,7 +863,6 @@ component_test_platform_calloc_macro () {
872
863
component_test_malloc_0_null () {
873
864
msg " build: malloc(0) returns NULL (ASan+UBSan build)"
874
865
scripts/config.py full
875
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
876
866
make CC=gcc CFLAGS=" '-DMBEDTLS_CONFIG_FILE=\" $PWD /tests/configs/config-wrapper-malloc-0-null.h\" ' $ASAN_CFLAGS -O" LDFLAGS=" $ASAN_CFLAGS "
877
867
878
868
msg " test: malloc(0) returns NULL (ASan+UBSan build)"
@@ -948,7 +938,6 @@ component_test_se_default () {
948
938
component_test_se_full () {
949
939
msg " build: full config + MBEDTLS_PSA_CRYPTO_SE_C"
950
940
scripts/config.py full
951
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
952
941
scripts/config.py set MBEDTLS_PSA_CRYPTO_SE_C
953
942
make CC=gcc CFLAGS=" $ASAN_CFLAGS -O2" LDFLAGS=" $ASAN_CFLAGS "
954
943
@@ -1001,9 +990,6 @@ component_test_m32_o1 () {
1001
990
# Build again with -O1, to compile in the i386 specific inline assembly
1002
991
msg " build: i386, make, gcc -O1 (ASan build)" # ~ 30s
1003
992
scripts/config.py full
1004
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE
1005
- scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1006
- scripts/config.py unset MBEDTLS_MEMORY_DEBUG
1007
993
make CC=gcc CFLAGS=" $ASAN_CFLAGS -m32 -O1" LDFLAGS=" -m32 $ASAN_CFLAGS "
1008
994
1009
995
msg " test: i386, make, gcc -O1 (ASan build)"
@@ -1076,7 +1062,6 @@ component_test_have_int64 () {
1076
1062
component_test_no_udbl_division () {
1077
1063
msg " build: MBEDTLS_NO_UDBL_DIVISION native" # ~ 10s
1078
1064
scripts/config.py full
1079
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
1080
1065
scripts/config.py set MBEDTLS_NO_UDBL_DIVISION
1081
1066
make CFLAGS=' -Werror -O1'
1082
1067
@@ -1087,7 +1072,6 @@ component_test_no_udbl_division () {
1087
1072
component_test_no_64bit_multiplication () {
1088
1073
msg " build: MBEDTLS_NO_64BIT_MULTIPLICATION native" # ~ 10s
1089
1074
scripts/config.py full
1090
- scripts/config.py unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
1091
1075
scripts/config.py set MBEDTLS_NO_64BIT_MULTIPLICATION
1092
1076
make CFLAGS=' -Werror -O1'
1093
1077
0 commit comments