mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-04 15:39:53 +00:00
Move the names of input files to global variables
No behavior change.
This commit is contained in:
parent
8f5a5018e8
commit
69f93b5040
@ -349,6 +349,9 @@ def run_tests(options, inputs):
|
|||||||
errors += e
|
errors += e
|
||||||
return count, errors
|
return count, errors
|
||||||
|
|
||||||
|
HEADERS = ['psa/crypto.h', 'psa/crypto_extra.h', 'psa/crypto_values.h']
|
||||||
|
TEST_SUITES = ['tests/suites/test_suite_psa_crypto_metadata.data']
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description=globals()['__doc__'])
|
parser = argparse.ArgumentParser(description=globals()['__doc__'])
|
||||||
parser.add_argument('--include', '-I',
|
parser.add_argument('--include', '-I',
|
||||||
@ -364,10 +367,8 @@ def main():
|
|||||||
default='programs/psa/psa_constant_names',
|
default='programs/psa/psa_constant_names',
|
||||||
help='Program to test')
|
help='Program to test')
|
||||||
options = parser.parse_args()
|
options = parser.parse_args()
|
||||||
headers = [os.path.join(options.include[0], 'psa', h)
|
headers = [os.path.join(options.include[0], h) for h in HEADERS]
|
||||||
for h in ['crypto.h', 'crypto_extra.h', 'crypto_values.h']]
|
inputs = gather_inputs(headers, TEST_SUITES)
|
||||||
test_suites = ['tests/suites/test_suite_psa_crypto_metadata.data']
|
|
||||||
inputs = gather_inputs(headers, test_suites)
|
|
||||||
count, errors = run_tests(options, inputs)
|
count, errors = run_tests(options, inputs)
|
||||||
report_errors(errors)
|
report_errors(errors)
|
||||||
if errors == []:
|
if errors == []:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user