mbedtls/tests/scripts
Gilles Peskine 5226eb5cd3 Simplify parsing of integers in .datax files
In the .datax parser, since we're calling strtol() anyway, rely on it for
verification. This makes the .datax parser very slightly more
liberal (leading spaces and '+' are now accepted), and changes the
interpretation of numbers with leading zeros to octal.

Before, an argument like :0123: was parsed as decimal, but an argument like
:0123+1: was parsed as a C expression and hence the leading zero marked an
octal representation. Now, a leading zero is always interpreted according to
C syntax, namely indicating octal. There are no nonzero integer constants
with a leading zero in a .data file, so this does not affect existing test
cases.

In the .datax generator, allow negative arguments to be 'int' (before, they
were systematically treated as 'exp' even though they didn't need to be).

In the .datax parser, validate the range of integer constants. They have to
fit in int32_t. In the .datax generator, use 'exp' instead of 'int' for
integer constants that are out of range.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-04-26 19:40:02 +02:00
..
all-in-docker.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
all.sh Merge pull request #7465 from valeriosetti/issue7460-part3 2023-04-24 13:06:09 +02:00
analyze_outcomes.py test: add coverage's analysis framework for accel EC algs w/o ECP 2023-04-17 12:03:48 +02:00
basic-build-test.sh Merge pull request #6823 from mpg/unify-openssl-variables 2023-01-10 22:10:19 +01:00
basic-in-docker.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
check-doxy-blocks.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-generated-files.sh Add test generation support for the ecp module 2023-01-31 14:40:05 +01:00
check-python-files.sh Don't use parallel jobs for pylint 2022-09-18 21:27:37 +02:00
check_files.py Allow whole Box Drawings range 2023-02-01 13:30:26 +00:00
check_names.py Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py 2023-01-16 16:36:31 +00:00
check_test_cases.py New option to list all test cases 2022-01-07 18:34:12 +01:00
depends.py Fix depends.py failure with correct TLS 1.2 deps 2023-03-24 10:43:40 +01:00
docker_env.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
doxygen.sh Fix typos 2023-02-06 12:54:53 +01:00
gen_ctr_drbg.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_decrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_encrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_pkcs1_v21_sign_verify.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate-afl-tests.sh Don't use test_suite_mpi as an example 2022-10-21 18:56:47 +02:00
generate_bignum_tests.py Remove unused import 2022-12-20 19:52:42 +01:00
generate_ecp_tests.py Keep the description in one place, just refer it 2023-02-13 14:10:23 +01:00
generate_pkcs7_tests.py Fix instances of old feature macros being used 2023-03-24 10:43:40 +01:00
generate_psa_tests.py Merge pull request #6802 from gilles-peskine-arm/test_suite_psa_crypto_metadata-20221215 2023-01-27 10:05:00 +01:00
generate_test_code.py Simplify parsing of integers in .datax files 2023-04-26 19:40:02 +02:00
generate_tls13_compat_tests.py ssl-opt.sh: Remove some unnecessary forcing of TLS 1.3 2023-04-06 10:26:18 +02:00
list-identifiers.sh Fix English typos in comments of check_names and list-identifiers 2021-08-16 10:37:24 +01:00
list_internal_identifiers.py Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py 2023-01-16 16:36:31 +00:00
psa_collect_statuses.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
recursion.pl Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
run-test-suites.pl Use .datax for make test, not .data 2022-11-15 23:54:26 +01:00
scripts_path.py Allow tests/scripts/foo.py to import from scripts 2020-12-10 23:16:03 +01:00
set_psa_test_dependencies.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
tcp_client.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test-ref-configs.pl test-ref-configs: clarify configuration-related traces 2022-03-14 19:49:18 +01:00
test_config_script.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
test_generate_test_code.py Add line number to a few error messages 2023-04-26 19:38:40 +02:00
test_psa_compliance.py Fix typos prior to release 2022-12-04 17:19:59 +00:00
test_psa_constant_names.py Short-tag AEAD with the nominal length are encoded as nominal AEAD 2022-04-15 11:10:14 +02:00
test_zeroize.gdb Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
translate_ciphers.py Batch cipher translations to go faster 2023-01-26 21:45:45 +01:00
travis-log-failure.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00