mbedtls/scripts/mbedtls_dev
Gilles Peskine 3d404b8a10 Use InputsForTest in generate_psa_tests
In generate_psa_tests, use InputsForTest rather than PSAMacroCollector
to gather values. This way, the enumeration of values to test includes
values used in metadata tests in addition to constructors parsed from
header files. This allows greater coverage of values built from
constructors with arguments. This doesn't make a difference yet, but
it will once algorithm constructors with arguments are supported in
generate_psa_tests.

Make the injection of numerical values optional. They are useful for
test_psa_constant_names, so keep them there. Don't use them for
not-supported tests: they might make sense, but the current code
wouldn't work since it doesn't know how to make up fake key material
or what dependencies to generate. Don't use them for storage tests:
they only make sense for supported values.

Don't inject 'PSA_SUCCESS': that's superfluous.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-05-25 19:39:02 +02:00
..
asymmetric_key_data.py Add key material for twisted Edwards curves 2021-03-29 15:08:10 +02:00
build_tree.py Allow running source file generators from a subdirectory 2021-05-17 22:46:27 +02:00
c_build_helper.py Remove caching of cc_is_msvc 2021-05-20 10:37:22 +02:00
crypto_knowledge.py Add new key types to crypto_knowledge.py 2021-05-03 11:02:56 +02:00
macro_collector.py Use InputsForTest in generate_psa_tests 2021-05-25 19:39:02 +02:00
psa_storage.py Obtain the values of expressions by running C code 2021-03-10 23:22:35 +01:00
test_case.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00
typing_util.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00