generate_ecp_tests.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python3
  2. """Generate test data for ecp functions.
  3. The command line usage, class structure and available methods are the same
  4. as in generate_bignum_tests.py.
  5. """
  6. # Copyright The Mbed TLS Contributors
  7. # SPDX-License-Identifier: Apache-2.0
  8. #
  9. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  10. # not use this file except in compliance with the License.
  11. # You may obtain a copy of the License at
  12. #
  13. # http://www.apache.org/licenses/LICENSE-2.0
  14. #
  15. # Unless required by applicable law or agreed to in writing, software
  16. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  17. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. # See the License for the specific language governing permissions and
  19. # limitations under the License.
  20. import sys
  21. import scripts_path # pylint: disable=unused-import
  22. from mbedtls_dev import test_data_generation
  23. # Import modules containing additional test classes
  24. # Test function classes in these modules will be registered by
  25. # the framework
  26. from mbedtls_dev import ecp # pylint: disable=unused-import
  27. if __name__ == '__main__':
  28. # Use the section of the docstring relevant to the CLI as description
  29. test_data_generation.main(sys.argv[1:], "\n".join(__doc__.splitlines()[:4]))