8 Commits

Author SHA1 Message Date
Gilles Peskine 316ec76508 Modernize usage of re.sub deprecated in Python 3.13
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-02-18 20:10:40 +01:00
Valerio Setti c9d6bf4534 generate_test_code.py: simplify regex expression
"\w" already matches "[a-zA-Z0-9_]" so CONDITION_VALUE_REGEX
can be simplified as proposed in this commit.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-10-11 15:12:02 +02:00
Valerio Setti bf87497fdc generate_test_code.py: improve detection of ambiguous numerical values
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-10-09 10:21:10 +02:00
Valerio Setti f8025e4362 generate_test_code.py: allow bitwise operators in depends_on expressions
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-10-09 10:21:10 +02:00
Valerio Setti a6e9c083a1 generate_test_code.py: add check for numerical format
Do not allow values starting with a 0 because they can be either
accidentally octal or accidentally decimal. Hex values are not
affected by this change.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-10-09 10:21:10 +02:00
Valerio Setti b6dc14c3c8 generate_test_code: ease checks on the test data depends_on
In case of depends_on elements that include a conditional check
on some symbol's value, we allow the comparison element to
be anything and not just a fixed value as it was before.
This allows for more complex depends_on conditions where
build symbols and macros are used on both sides of the comparison.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-10-09 10:21:10 +02:00
Michael Schuster 17bedf7059 Generate static test functions & wrappers to fix missing-prototype errors in mbedtls/tests/suites
Required for: https://github.com/Mbed-TLS/mbedtls/pull/9189

Signed-off-by: Michael Schuster <michael@schuster.ms>
2024-08-09 18:08:15 +02:00
David Horstmann aac7f0bcbb Move some files to framework repository
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-05-29 16:01:43 +01:00