mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Read constant names from crypto_extra.h as well as crypto_values.h
test_psa_constant_names.py was originally written before the split of crypto.h into crypto_values.h and more, so it now needs to read crypto_values.h as well. In both generate_psa_constants.py and test_psa_constant_names.py, read crypto_extra.h as well. We don't currently define any value there, but it's plausible that we will one day.
This commit is contained in:
committed by
Darryl Green
parent
6a78573088
commit
6d194bd92b
@@ -294,7 +294,8 @@ if __name__ == '__main__':
|
||||
action='store_false', dest='keep_c',
|
||||
help='Don\'t keep the intermediate C file (default)')
|
||||
options = parser.parse_args()
|
||||
headers = [os.path.join(options.include[0], 'psa/crypto.h')]
|
||||
headers = [os.path.join(options.include[0], 'psa', h)
|
||||
for h in ['crypto.h', 'crypto_extra.h', 'crypto_values.h']]
|
||||
test_suites = ['tests/suites/test_suite_psa_crypto_metadata.data']
|
||||
inputs = gather_inputs(headers, test_suites)
|
||||
count, errors = run_tests(options, inputs)
|
||||
|
Reference in New Issue
Block a user