1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Integrate tests as unit tests into one file

Rather than having the tests seperated into different files, they were integrated
into translate_ciphers.py and can be run from root using:
`python -m unittest tests/scripts/translate_ciphers.py`

test_translate_ciphers_format.sh was originally made as a testing ground before
having the translation tool being implmented into compat.sh. Translating it to
python code makes it redundant and therefore it will be removed.

Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
Joe Subbiani
2021-08-06 09:41:27 +01:00
parent f2de374fc1
commit a25ffab422
4 changed files with 533 additions and 638 deletions

View File

@@ -2750,9 +2750,8 @@ component_check_test_helpers () {
# harmless info on stdout so it can be suppress with --quiet.
./tests/scripts/test_generate_test_code.py 2>&1
msg "test: translate_ciphers.py"
./tests/scripts/test_translate_ciphers_format.sh
./tests/scripts/test_translate_ciphers_names.py
msg "unit test: translate_ciphers.py"
python3 -m unittest tests/scripts/translate_ciphers.py 2>&1
}
################################################################