mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
depends.py: add a config option to unset MBEDTLS_USE_PSA
This lets us perform any test without MBEDTLS_USE_PSA Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
@ -146,6 +146,8 @@ derived."""
|
|||||||
# Turn off options that are not relevant to the tests and slow them down.
|
# Turn off options that are not relevant to the tests and slow them down.
|
||||||
run_config_py(options, ['full'])
|
run_config_py(options, ['full'])
|
||||||
run_config_py(options, ['unset', 'MBEDTLS_TEST_HOOKS'])
|
run_config_py(options, ['unset', 'MBEDTLS_TEST_HOOKS'])
|
||||||
|
if options.unset_use_psa:
|
||||||
|
run_config_py(options, ['unset', 'MBEDTLS_USE_PSA_CRYPTO'])
|
||||||
|
|
||||||
def collect_config_symbols(options):
|
def collect_config_symbols(options):
|
||||||
"""Read the list of settings from mbedtls_config.h.
|
"""Read the list of settings from mbedtls_config.h.
|
||||||
@ -534,6 +536,9 @@ def main():
|
|||||||
parser.add_argument('--make-command', metavar='CMD',
|
parser.add_argument('--make-command', metavar='CMD',
|
||||||
help='Command to run instead of make (e.g. gmake)',
|
help='Command to run instead of make (e.g. gmake)',
|
||||||
action='store', default='make')
|
action='store', default='make')
|
||||||
|
parser.add_argument('--unset-use-psa',
|
||||||
|
help='Unset MBEDTLS_USE_PSA_CRYPTO before any test',
|
||||||
|
action='store_true', dest='unset_use_psa')
|
||||||
parser.add_argument('tasks', metavar='TASKS', nargs='*',
|
parser.add_argument('tasks', metavar='TASKS', nargs='*',
|
||||||
help='The domain(s) or job(s) to test (default: all).',
|
help='The domain(s) or job(s) to test (default: all).',
|
||||||
default=True)
|
default=True)
|
||||||
|
Reference in New Issue
Block a user