Gabor Mezei | 95ecaaf | 2023-01-16 16:53:29 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | """Generate test data for ecp functions. |
| 3 | |
Gabor Mezei | a9d82dd | 2023-02-13 14:10:23 +0100 | [diff] [blame] | 4 | The command line usage, class structure and available methods are the same |
| 5 | as in generate_bignum_tests.py. |
Gabor Mezei | 95ecaaf | 2023-01-16 16:53:29 +0100 | [diff] [blame] | 6 | """ |
| 7 | |
| 8 | # Copyright The Mbed TLS Contributors |
Dave Rodgman | 16799db | 2023-11-02 19:47:20 +0000 | [diff] [blame^] | 9 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Gabor Mezei | 95ecaaf | 2023-01-16 16:53:29 +0100 | [diff] [blame] | 10 | |
| 11 | import sys |
| 12 | |
| 13 | import scripts_path # pylint: disable=unused-import |
| 14 | from 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 |
| 18 | from mbedtls_dev import ecp # pylint: disable=unused-import |
| 19 | |
| 20 | if __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])) |