Add helper function for data_files tests

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-06-19 15:40:13 +08:00
parent f1bef0b31f
commit 6c192e9eda

View File

@ -894,6 +894,30 @@ helper_libtestdriver1_make_main() {
make CFLAGS="$ASAN_CFLAGS -I../tests/include -I../tests -I../../tests -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_TEST_LIBTESTDRIVER1 $loc_accel_flags" LDFLAGS="-ltestdriver1 $ASAN_CFLAGS" "$@"
}
################################################################
#### Helpers for checking `tests/data_files`
################################################################
helper_datafile_run_tests () {
msg "build: $1" # ~ 1 min 50s
CC=gcc make
msg "test: main suites" # ~ 50s
CC=gcc make test
msg "test: selftest" # ~ 10s
programs/test/selftest
msg "test: ssl-opt.sh" # ~ 1 min
tests/ssl-opt.sh
msg "test: compat.sh" # ~ 6 min
tests/compat.sh
msg "test: context-info.sh" # ~ 15 sec
tests/context-info.sh
}
################################################################
#### Basic checks
################################################################