From 6c192e9eda21bd7ce2aa210f3769520251f0bd1e Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Mon, 19 Jun 2023 15:40:13 +0800 Subject: [PATCH] Add helper function for data_files tests Signed-off-by: Jerry Yu --- tests/scripts/faketime-all.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/scripts/faketime-all.sh b/tests/scripts/faketime-all.sh index 57de29034c..b424b53f82 100755 --- a/tests/scripts/faketime-all.sh +++ b/tests/scripts/faketime-all.sh @@ -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 ################################################################