From 0291cb71806c6f4e0d9f1e73e63adacaa83d9e18 Mon Sep 17 00:00:00 2001 From: k-stachowiak Date: Wed, 26 Jun 2019 15:52:12 +0200 Subject: [PATCH 1/2] Add an alternarive full build component to all.sh --- tests/scripts/all.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index b38c7d457..224322312 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -602,13 +602,23 @@ component_test_full_cmake_clang () { CC=clang cmake -D CMAKE_BUILD_TYPE:String=Check -D ENABLE_TESTING=On . make - msg "test: main suites (full config)" # ~ 5s + msg "test: main suites (full config, clang)" # ~ 5s make test - msg "test: psa_constant_names (full config)" # ~ 1s + msg "test: psa_constant_names (full config, clang)" # ~ 1s record_status tests/scripts/test_psa_constant_names.py } +component_test_full_make_gcc () { + msg "build: make, full config, gcc" # ~ 50s + scripts/config.pl full + scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests + make + + msg "test: main suites (full config, gcc)" # ~ 5s + make test +} + component_build_deprecated () { msg "build: make, full config + DEPRECATED_WARNING, gcc -O" # ~ 30s scripts/config.pl full From 5559b31b6b120b9685ab30d463ca959ebfa8dab3 Mon Sep 17 00:00:00 2001 From: k-stachowiak Date: Thu, 27 Jun 2019 11:28:11 +0200 Subject: [PATCH 2/2] Disable optimizations for the full+make+gcc all.sh component --- tests/scripts/all.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 224322312..be0eb2a55 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -609,13 +609,13 @@ component_test_full_cmake_clang () { record_status tests/scripts/test_psa_constant_names.py } -component_test_full_make_gcc () { - msg "build: make, full config, gcc" # ~ 50s +component_test_full_make_gcc_o0 () { + msg "build: make, full config, gcc -O0" # ~ 50s scripts/config.pl full scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests - make + make CC=gcc CFLAGS='-O0' - msg "test: main suites (full config, gcc)" # ~ 5s + msg "test: main suites (full config, gcc -O0)" # ~ 5s make test }