From 816e0438058d30ab960e12cd344382a60ed4565e Mon Sep 17 00:00:00 2001 From: John Durkop Date: Mon, 5 Oct 2020 21:18:06 -0700 Subject: [PATCH] Update how test sets PSA_WANT_ALG_* With the introduction of new tests for PSA crypto config features the test needs to now be able to set and unset values from the psa/crypto_config.h file. This change updates from passing the defines as a build arguement to modifying the header files using config.py. Signed-off-by: John Durkop --- tests/scripts/all.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index f07933403..814c87f58 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1317,8 +1317,10 @@ component_test_psa_crypto_config_want_ecdsa() { scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO scripts/config.py unset MBEDTLS_ECDSA_C + scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_ECDSA + scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_ECDSA_DETERMINISTIC # Need to define the correct symbol and include the test driver header path in order to build with the test driver - make CC=gcc CFLAGS="$ASAN_CFLAGS -DMBEDTLS_PSA_ACCEL_ALG_ECDSA -DPSA_WANT_ALG_ECDSA -DPSA_CRYPTO_DRIVER_TEST -I../tests/include -O2" LDFLAGS="$ASAN_CFLAGS" + make CC=gcc CFLAGS="$ASAN_CFLAGS -DMBEDTLS_PSA_ACCEL_ALG_ECDSA -DPSA_CRYPTO_DRIVER_TEST -I../tests/include -O2" LDFLAGS="$ASAN_CFLAGS" msg "test: psa crypto config want ECDSA" make test