Yuto Takano
d93fa37aa6
Address all pylint issues to follow style
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 23:05:55 +01:00
Yuto Takano
9e0e0e9980
Fix Pylint-detected function argument syntax error
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 22:01:37 +01:00
Yuto Takano
25eeb7b935
Output subprocess stdout if it errored
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:27:59 +01:00
Yuto Takano
cfc9e4a275
Change identifier regex to better support multiline declarations
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
8f457cf222
Use enumerate() to get line numbers
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
a4e751257a
Output line number, line, and position of error
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
159255ab7b
Document dependency on nm
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
13ecd996fc
Improve regex to adapt to flexible spaces
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
5c1acf2735
Match macros with spaces between # and define
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
d24e037dd1
Warn user if files are excluded from search
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
5939a2a4de
Check environment by verifying other dirs' existence
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
201f9e85ca
Make use of -v to log some debug information
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
81528c058a
Add documentation, fix identifier parsing
...
- Add documentation to all classes and functions that were
not self-explanatory.
- Fix the parsing of identifiers, so it now behaves identically
to the original shell script. Detects the same amount of identifiers.
- Fix macro parsing so MBEDTLS_PSA_ACCEL didn't error out
- Reformat output to be comprehensible
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
6f38ab3bca
Fix legacy troublesome regex
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
fe02684049
Python port of f6643ccd90
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
0fd48f7939
Python port of 7cc4c68eb6
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
17220988dc
Parse identifiers from library headers: Python port of d9eee3b417
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
56e3a5caa6
Add test driver symbols: Python port of 7f13fa2454
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
e77f699ed5
Exclude FStar and Hacl: Python port of 9b33e7d7d7
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
062289c657
Invoke config.py instead of pl: Python port of 5d46f6a89b
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
c62b4084a2
Per-line opt-out of typo check: Python port of b683776181
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
e503d61b99
Remove 1.3 to 2.0 helpers: Python port of 7d48b28218
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
157444c24d
Add library header files: Python port of 65a6fa3e26
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
c763cc368f
Check for double underscores: Python port of 712f7a804e
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
fa950ae344
Look in 3rdparty: Python port of 8a0f5bb3c1
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
bb7dca495f
Work with PSA constants: Python port of 03091d1114
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
ed91cf003a
Remove Yotta: Python port of 3ad2efdc82
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
c1838937f1
Also check PSA: Python port of 2d9d6db60f
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
3963967ebc
Restructure check-names.py with more verbose error messages
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:39 +01:00
Yuto Takano
b61f0e1151
Merge upstream 3.0 from 'development' in ARMmbed/mbedtls
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:07:34 +01:00
Darryl Green
6c79b5dce7
Keep compatibility with python versions prior to 3.5
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:04:36 +01:00
Darryl Green
a783d9c5ef
Remove check-names.sh and sub-scripts it used
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:04:34 +01:00
Darryl Green
4e9b51bc18
Update scripts to use check-names.py
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:04:32 +01:00
Darryl Green
d5802926d9
Rewrite check-names.sh in python
...
Signed-off-by: Yuto Takano <yuto.takano@arm.com >
2021-08-06 21:04:26 +01:00
Gilles Peskine
80ddb991c2
Add --restore option to clean up but not necessarily run components
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-06 11:51:59 +02:00
Gilles Peskine
03af678911
Documentation improvements
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-06 11:35:17 +02:00
Gilles Peskine
86f6129067
Documentation improvement
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-05 15:11:33 +02:00
Gilles Peskine
7530163f3b
Make --quiet more effective when running make generated_files
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-05 15:10:47 +02:00
Gilles Peskine
78f6f05778
Merge pull request #4695 from yutotakano/fix-ssl-opt.sh-hard-abort
...
ssl-opt.sh: Skip tests instead of conditional hard abort
2021-08-04 10:16:19 +02:00
Gilles Peskine
bf66e2cc8f
Documentation improvements
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-03 13:44:28 +02:00
Gilles Peskine
1d475b6398
Disable wildcards when checking for unsupported components
...
Otherwise $COMMAND_LINE_COMPONENTS would try to expand wildcard patterns
based on files in the current directory.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-03 13:43:36 +02:00
Manuel Pégourié-Gonnard
ae505eeeed
Fix missing dependency on Travis
...
Was getting errors like:
In file included from /usr/include/limits.h:25:0,
from /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h:168,
from /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/syslimits.h:7,
from /usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h:34,
from ../include/mbedtls/check_config.h:30,
from ../include/mbedtls/build_info.h:81,
from common.h:26,
from asn1write.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
There are two packages to choose from: armhf or armel. Since the comment
in all.sh says we're trying to be close to Debian's "armel"
architecture, choose that, and fix a comment that was mentioning
gnueabihf for no apparent reason.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2021-08-03 11:19:59 +02:00
Manuel Pégourié-Gonnard
3a6c76937a
Add arm-linux-gnueabi-gcc build to all.sh
...
Currently it can't be mandatory, since we can't install the required toolchain
on Jenkins right away.
Also, while at it, remove `SHELL='sh -x'` from the other arm5vte component; it
was a leftover from debugging.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2021-08-03 11:19:59 +02:00
Gilles Peskine
c111e24292
Improve the detection of keep-going commands
...
Have simpler patterns related to 'test' (the central objective being to keep
going if 'make test' or 'tests/...' fails, but not if 'make tests' fails).
Add 'cd' as a can't-keep-going command.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-02 23:29:53 +02:00
Gilles Peskine
88a7c2b32e
Improve --error-test reporting
...
Count invocations from 1 to n instead of n to 1.
Explain how changing the loop variable would cause an error if the function
was not executed in a subshell.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-02 23:28:00 +02:00
Gilles Peskine
ec135544c8
Clarify some comments
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-08-02 23:27:42 +02:00
Gilles Peskine
8bb9b80d18
Merge pull request #4806 from hanno-arm/ssl_session_serialization_version
...
Store TLS version in SSL session structure
2021-08-02 12:45:55 +02:00
Hanno Becker
d7e4b2ce42
Remove duplicated test from SSL test suite
...
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-08-02 04:54:03 +01:00
Hanno Becker
6c53ecc01d
all.sh: Run basic TLS 1.3 with and without record padding
...
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-08-02 04:54:03 +01:00
Hanno Becker
1f91878281
Specify padding granularity in TLS 1.3 record protection KATs
...
Still check that encryption and decryption are inverse to each other
if the granularity does not match the one used in the KAT.
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-08-02 04:54:03 +01:00