• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10#
11# Licensed under the Apache License, Version 2.0 (the "License"); you may
12# not use this file except in compliance with the License.
13# You may obtain a copy of the License at
14#
15# http://www.apache.org/licenses/LICENSE-2.0
16#
17# Unless required by applicable law or agreed to in writing, software
18# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
19# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20# See the License for the specific language governing permissions and
21# limitations under the License.
22
23import sys
24
25import scripts_path # pylint: disable=unused-import
26from mbedtls_dev import test_data_generation
27# Import modules containing additional test classes
28# Test function classes in these modules will be registered by
29# the framework
30from mbedtls_dev import ecp # pylint: disable=unused-import
31
32if __name__ == '__main__':
33    # Use the section of the docstring relevant to the CLI as description
34    test_data_generation.main(sys.argv[1:], "\n".join(__doc__.splitlines()[:4]))
35