xref: /aosp_15_r20/external/mbedtls/tests/scripts/generate_ecp_tests.py (revision 62c56f9862f102b96d72393aff6076c951fb8148)
1#!/usr/bin/env python3
2"""Generate test data for ecp functions.
3
4The command line usage, class structure and available methods are the same
5as in generate_bignum_tests.py.
6"""
7
8# Copyright The Mbed TLS Contributors
9# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10
11import sys
12
13import scripts_path # pylint: disable=unused-import
14from mbedtls_dev import test_data_generation
15# Import modules containing additional test classes
16# Test function classes in these modules will be registered by
17# the framework
18from mbedtls_dev import ecp # pylint: disable=unused-import
19
20if __name__ == '__main__':
21    # Use the section of the docstring relevant to the CLI as description
22    test_data_generation.main(sys.argv[1:], "\n".join(__doc__.splitlines()[:4]))
23