Manuel Pégourié-Gonnard 6a96f42051 Document driver wrapper suite & tested configs
The coverage data for the test drivers was generated using the following
patch:

diff --git a/scripts/lcov.sh b/scripts/lcov.sh
index 9258ba788874..1ef071a65c06 100755
--- a/scripts/lcov.sh
+++ b/scripts/lcov.sh
@@ -63,8 +63,8 @@ if [ $# -gt 0 ] && [ "$1" = "--help" ]; then
 fi

 if in_mbedtls_build_dir; then
-    library_dir='library'
-    title='Mbed TLS'
+    library_dir='tests/src/drivers'
+    title='Mbed TLS test drivers'
 else
     library_dir='core'
     title='TF-PSA-Crypto'
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 734d8323ca73..f6b17ca5692b 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -4795,14 +4795,17 @@ component_test_psa_crypto_drivers () {
     msg "build: full + test drivers dispatching to builtins"
     scripts/config.py full
     scripts/config.py unset MBEDTLS_PSA_CRYPTO_CONFIG
-    loc_cflags="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST_ALL"
+    loc_cflags="--coverage -DPSA_CRYPTO_DRIVER_TEST_ALL"
     loc_cflags="${loc_cflags} '-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/user-config-for-test.h\"'"
-    loc_cflags="${loc_cflags} -I../tests/include -O2"
+    loc_cflags="${loc_cflags} -I../tests/include -Og -g3"

-    make CC=gcc CFLAGS="${loc_cflags}" LDFLAGS="$ASAN_CFLAGS"
+    make CC=gcc CFLAGS="${loc_cflags}" LDFLAGS="--coverage" -C tests test_suite_psa_crypto_driver_wrappers

     msg "test: full + test drivers dispatching to builtins"
-    make test
+    (cd tests && ./test_suite_psa_crypto_driver_wrappers --verbose)
+    #make test
+
+    scripts/lcov.sh
 }

 component_test_make_shared () {

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2024-04-12 12:40:01 +02:00
..
architecture Document driver wrapper suite & tested configs 2024-04-12 12:40:01 +02:00
proposed Fix broken link to psa-driver-example-and-guide in psa-driver-wrappers-codegen-migration-guide.md 2023-10-31 15:39:25 +00:00
.gitignore Add _build/ and api/ to gitignore 2023-03-28 15:00:24 +01:00
3.0-migration-guide.md Additional updates to docs links 2022-10-12 16:47:08 +01:00
conf.py Add initial API doc configuration 2023-03-16 18:01:58 +00:00
driver-only-builds.md driver-only-builds: improve a sentence in the HMAC section 2024-01-26 15:07:02 +01:00
index.rst Add initial API doc configuration 2023-03-16 18:01:58 +00:00
Makefile Clean the breathe-apidoc files with make clean 2023-03-28 14:24:47 +01:00
psa-driver-example-and-guide.md Use attribute accessor functions in driver wrappers 2024-02-28 01:29:13 +01:00
psa-transition.md Fix copypasta 2024-03-13 09:33:03 +01:00
redirects.yaml Migrate to new RTD redirect format 2024-01-16 17:06:06 +01:00
requirements.in Add readthedocs-cli to requirements.in 2023-05-02 19:59:34 +02:00
requirements.txt Add readthedocs-cli to requirements.in 2023-05-02 19:59:34 +02:00
tls13-early-data.md tls13-early-data.md: Fix reading early data documentation 2024-03-15 10:41:52 +01:00
use-psa-crypto.md pk: add check_pair info to mbedtls_pk_setup_opaque() documentation 2024-03-22 14:36:41 +01:00