all.sh: run selftest in the full config and with ASan
Almost everything the selftest program does is in the test suites. But just in case run the selftest program itself once in the full configuration, and once in the default configuration with ASan, in addition to running it out of box. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
5cac337228
commit
97bea01ff4
1 changed files with 7 additions and 1 deletions
|
@ -645,7 +645,7 @@ component_test_default_out_of_box () {
|
||||||
make test
|
make test
|
||||||
|
|
||||||
msg "selftest: make, default config (out-of-box)" # ~10s
|
msg "selftest: make, default config (out-of-box)" # ~10s
|
||||||
programs/test/selftest
|
if_build_succeeded programs/test/selftest
|
||||||
|
|
||||||
export MBEDTLS_TEST_OUTCOME_FILE="$SAVE_MBEDTLS_TEST_OUTCOME_FILE"
|
export MBEDTLS_TEST_OUTCOME_FILE="$SAVE_MBEDTLS_TEST_OUTCOME_FILE"
|
||||||
unset SAVE_MBEDTLS_TEST_OUTCOME_FILE
|
unset SAVE_MBEDTLS_TEST_OUTCOME_FILE
|
||||||
|
@ -659,6 +659,9 @@ component_test_default_cmake_gcc_asan () {
|
||||||
msg "test: main suites (inc. selftests) (ASan build)" # ~ 50s
|
msg "test: main suites (inc. selftests) (ASan build)" # ~ 50s
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
msg "test: selftest (ASan build)" # ~ 10s
|
||||||
|
if_build_succeeded programs/test/selftest
|
||||||
|
|
||||||
msg "test: ssl-opt.sh (ASan build)" # ~ 1 min
|
msg "test: ssl-opt.sh (ASan build)" # ~ 1 min
|
||||||
if_build_succeeded tests/ssl-opt.sh
|
if_build_succeeded tests/ssl-opt.sh
|
||||||
|
|
||||||
|
@ -678,6 +681,9 @@ component_test_full_cmake_gcc_asan () {
|
||||||
msg "test: main suites (inc. selftests) (full config, ASan build)"
|
msg "test: main suites (inc. selftests) (full config, ASan build)"
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
msg "test: selftest (ASan build)" # ~ 10s
|
||||||
|
if_build_succeeded programs/test/selftest
|
||||||
|
|
||||||
msg "test: ssl-opt.sh (full config, ASan build)"
|
msg "test: ssl-opt.sh (full config, ASan build)"
|
||||||
if_build_succeeded tests/ssl-opt.sh
|
if_build_succeeded tests/ssl-opt.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue