1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

generate_test_cert_macros: embed input args

- Embed input arguments inside the script so as to simplify the
  calls in Makefiles/CMakeLists.
- add a new "--list-dependencies" command line option to print
  out the list of dependencies.
- Modify tests/Makefile accordinlgy.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti
2024-04-15 06:30:18 +02:00
parent 34f280538c
commit 455fb4e803
4 changed files with 49 additions and 216 deletions

View File

@ -14,34 +14,4 @@ python tests\scripts\generate_bignum_tests.py || exit /b 1
python tests\scripts\generate_ecp_tests.py || exit /b 1
python tests\scripts\generate_psa_tests.py || exit /b 1
python tests\scripts\generate_test_keys.py --output tests\src\test_keys.h || exit /b 1
python tests\scripts\generate_test_cert_macros.py --output tests\src\test_certs.h ^
--string TEST_CA_CRT_EC_PEM=tests\data_files\test-ca2.crt ^
--binary TEST_CA_CRT_EC_DER=tests\data_files\test-ca2.crt.der ^
--string TEST_CA_KEY_EC_PEM=tests\data_files\test-ca2.key.enc ^
--password TEST_CA_PWD_EC_PEM=PolarSSLTest ^
--binary TEST_CA_KEY_EC_DER=tests\data_files\test-ca2.key.der ^
--string TEST_CA_CRT_RSA_SHA256_PEM=tests\data_files\test-ca-sha256.crt ^
--binary TEST_CA_CRT_RSA_SHA256_DER=tests\data_files\test-ca-sha256.crt.der ^
--string TEST_CA_CRT_RSA_SHA1_PEM=tests\data_files\test-ca-sha1.crt ^
--binary TEST_CA_CRT_RSA_SHA1_DER=tests\data_files\test-ca-sha1.crt.der ^
--string TEST_CA_KEY_RSA_PEM=tests\data_files\test-ca.key ^
--password TEST_CA_PWD_RSA_PEM=PolarSSLTest ^
--binary TEST_CA_KEY_RSA_DER=tests\data_files\test-ca.key.der ^
--string TEST_SRV_CRT_EC_PEM=tests\data_files\server5.crt ^
--binary TEST_SRV_CRT_EC_DER=tests\data_files\server5.crt.der ^
--string TEST_SRV_KEY_EC_PEM=tests\data_files\server5.key ^
--binary TEST_SRV_KEY_EC_DER=tests\data_files\server5.key.der ^
--string TEST_SRV_CRT_RSA_SHA256_PEM=tests\data_files\server2-sha256.crt ^
--binary TEST_SRV_CRT_RSA_SHA256_DER=tests\data_files\server2-sha256.crt.der ^
--string TEST_SRV_CRT_RSA_SHA1_PEM=tests\data_files\server2.crt ^
--binary TEST_SRV_CRT_RSA_SHA1_DER=tests\data_files\server2.crt.der ^
--string TEST_SRV_KEY_RSA_PEM=tests\data_files\server2.key ^
--binary TEST_SRV_KEY_RSA_DER=tests\data_files\server2.key.der ^
--string TEST_CLI_CRT_EC_PEM=tests\data_files\cli2.crt ^
--binary TEST_CLI_CRT_EC_DER=tests\data_files\cli2.crt.der ^
--string TEST_CLI_KEY_EC_PEM=tests\data_files\cli2.key ^
--binary TEST_CLI_KEY_EC_DER=tests\data_files\cli2.key.der ^
--string TEST_CLI_CRT_RSA_PEM=tests\data_files\cli-rsa-sha256.crt ^
--binary TEST_CLI_CRT_RSA_DER=tests\data_files\cli-rsa-sha256.crt.der ^
--string TEST_CLI_KEY_RSA_PEM=tests\data_files\cli-rsa.key ^
--binary TEST_CLI_KEY_RSA_DER=tests\data_files\cli-rsa.key.der || exit /b 1
python tests\scripts\generate_test_cert_macros.py --output tests\src\test_certs.h || exit /b 1