mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-04 16:59:54 +00:00
New option to list all test cases
Occasionally useful for diagnosing issues with test reports. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
0c2f8ee3f0
commit
efd696afb9
|
@ -193,6 +193,9 @@ class DescriptionChecker(TestDescriptionExplorer):
|
|||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('--list-all',
|
||||
action='store_true',
|
||||
help='List all test cases, without doing checks')
|
||||
parser.add_argument('--quiet', '-q',
|
||||
action='store_true',
|
||||
help='Hide warnings')
|
||||
|
@ -200,6 +203,10 @@ def main():
|
|||
action='store_false', dest='quiet',
|
||||
help='Show warnings (default: on; undoes --quiet)')
|
||||
options = parser.parse_args()
|
||||
if options.list_all:
|
||||
descriptions = collect_available_test_cases()
|
||||
sys.stdout.write('\n'.join(descriptions + ['']))
|
||||
return
|
||||
results = Results(options)
|
||||
checker = DescriptionChecker(results)
|
||||
checker.walk_all()
|
||||
|
|
Loading…
Reference in a new issue