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 <john.durkop@fermatsoftware.com>
This commit is contained in:
parent
814dca7069
commit
816e043805
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue