Merge pull request #6468 from gilles-peskine-arm/bignum-test-suite-names

Rename test_suite_bignum for consistency
This commit is contained in:
Gilles Peskine 2022-10-25 10:40:29 +02:00 committed by GitHub
commit af8ea3f738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ Tests
----- -----
As mentioned, tests that show the correctness of the feature or bug fix should be added to the pull request, if no such tests exist. As mentioned, tests that show the correctness of the feature or bug fix should be added to the pull request, if no such tests exist.
Mbed TLS includes a comprehensive set of test suites in the `tests/` directory that are dynamically generated to produce the actual test source files (e.g. `test_suite_mpi.c`). These files are generated from a `function file` (e.g. `suites/test_suite_mpi.function`) and a `data file` (e.g. `suites/test_suite_mpi.data`). The function file contains the test functions. The data file contains the test cases, specified as parameters that will be passed to the test function. Mbed TLS includes a comprehensive set of test suites in the `tests/` directory that are dynamically generated to produce the actual test source files (e.g. `test_suite_rsa.c`). These files are generated from a `function file` (e.g. `suites/test_suite_rsa.function`) and a `data file` (e.g. `suites/test_suite_rsa.data`). The function file contains the test functions. The data file contains the test cases, specified as parameters that will be passed to the test function.
[A Knowledge Base article describing how to add additional tests is available on the Mbed TLS website](https://mbed-tls.readthedocs.io/en/latest/kb/development/test_suites/). [A Knowledge Base article describing how to add additional tests is available on the Mbed TLS website](https://mbed-tls.readthedocs.io/en/latest/kb/development/test_suites/).

View File

@ -6,7 +6,7 @@
# #
# Usage: generate-afl-tests.sh <test data file path> # Usage: generate-afl-tests.sh <test data file path>
# <test data file path> - should be the path to one of the test suite files # <test data file path> - should be the path to one of the test suite files
# such as 'test_suite_mpi.data' # such as 'test_suite_rsa.data'
# #
# Copyright The Mbed TLS Contributors # Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View File

@ -70,8 +70,8 @@ from mbedtls_dev import bignum_core # pylint: disable=unused-import
class BignumTarget(test_data_generation.BaseTarget, metaclass=ABCMeta): class BignumTarget(test_data_generation.BaseTarget, metaclass=ABCMeta):
#pylint: disable=abstract-method #pylint: disable=abstract-method
"""Target for bignum (mpi) test case generation.""" """Target for bignum (legacy) test case generation."""
target_basename = 'test_suite_mpi.generated' target_basename = 'test_suite_bignum.generated'
class BignumOperation(bignum_common.OperationCommon, BignumTarget, metaclass=ABCMeta): class BignumOperation(bignum_common.OperationCommon, BignumTarget, metaclass=ABCMeta):