Paul Elliott
56fd26cee9
Merge pull request #8640 from bensze01/release_components_2.28
...
[Backport 2.28] Set OpenSSL/GnuTLS variables when running release components
2024-01-11 15:38:23 +00:00
Dave Rodgman
ffb18d2012
Merge pull request #8670 from daverodgman/default-compiler-all-2.28
...
Backport CI perf: Use clang by default in all.sh
2024-01-04 12:58:50 +00:00
Dave Rodgman
e42c23569b
Don't use full path for setting CC
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:35:35 +00:00
Dave Rodgman
9d2c67f8e2
Use gcc in test_full_deprecated_warning
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:35:16 +00:00
Dave Rodgman
ce04f24737
Add -O2 to some CFLAGS which were not setting it
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:34:31 +00:00
Dave Rodgman
374b188468
Don't specify gcc unless the test requires it
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:30:57 +00:00
Dave Rodgman
b046b9a96b
Enable -O2 in depends.py
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:26:22 +00:00
Dave Rodgman
5b00fb111f
Use gcc in test_psa_compliance
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:26:17 +00:00
Dave Rodgman
b0660c22d9
Ensure test_psa_compliance uses gcc
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:26:07 +00:00
Dave Rodgman
e0a2f6d08d
Ensure clang is present
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:24:34 +00:00
Dave Rodgman
62be456449
Use clang by default
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2024-01-04 10:24:30 +00:00
Bence Szépkúti
cb89fbdc67
Set OpenSSL/GnuTLS variables in release components
...
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com >
2023-12-15 21:17:56 +01:00
Bence Szépkúti
44043ed127
Document release components in all.sh
...
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com >
2023-12-15 21:17:56 +01:00
Bence Szépkúti
2064c9b595
all.sh: Parse arguments before checking if a test is supported
...
Support for each test was checked before the command line had been
parsed, causing the support_ functions to ignore arguments that set a
tool's location.
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com >
2023-12-15 20:40:18 +01:00
Bence Szépkúti
e1c6c4c962
Do not run Valgrind tests in PR jobs
...
Co-authored-by: Dave Rodgman <dave.rodgman@arm.com >
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com >
2023-12-06 16:47:51 +00:00
Dave Rodgman
b9c70581a0
Merge pull request #8222 from tgonzalezorlandoarm/tg/backport-psa-low-hash-mac-size
...
Backport 2.28: Start testing the PSA built-in drivers: hashes
2023-11-21 15:39:36 +00:00
Gilles Peskine
d4084fd899
Readability improvement
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-16 15:56:52 +01:00
Gilles Peskine
c41133b90d
Add documentation
...
Explain the goals of metatests, how to write them, and how to read their
output.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-16 15:56:52 +01:00
Gilles Peskine
e38eb79e89
Add metatests for mutex usage
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-16 15:56:23 +01:00
Gilles Peskine
ee8af06887
Run metatests in selected components
...
Run metatests in some components, covering both GCC and Clang, with ASan,
MSan or neither.
Note that this commit does not cover constant-flow testing builds or Valgrind.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-16 15:56:23 +01:00
Gilles Peskine
6effdff76b
Script to run all the metatests (with platform filtering)
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-16 15:56:23 +01:00
Tomás González
5fae560b4a
Update new license headers
...
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com >
2023-11-13 11:45:12 +00:00
Gilles Peskine
ac5fcd4540
Update license
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-08 19:19:18 +01:00
Gilles Peskine
bfc1844eb2
Merge pull request #8480 from yuhaoth/backports/7649/add-command-for-server9-bad-saltlen
...
Backports for #7649 : add command for server9-bad-saltlen
2023-11-08 19:04:27 +01:00
Dave Rodgman
d6d43ec8a5
Merge pull request #8485 from gilles-peskine-arm/check-files-license-2.28
...
Backport 2.28: Check copyright statements and SPDX license statements
2023-11-06 17:07:48 +00:00
Gilles Peskine
32ffbfd139
Pacify mypy
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-06 13:25:37 +01:00
Gilles Peskine
1b4f036dd4
Also complain if licenses are mentioned
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-06 13:25:37 +01:00
Gilles Peskine
15db6822a3
Check copyright statements and SPDX license identifier
...
Enforce a specific copyright statement and a specific SPDX license
identifier where they are present.
Binary files, third-party modules and a few other exceptions are not
checked.
There is currently no check that copyright statements and license
identifiers are present.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-06 13:25:37 +01:00
Gilles Peskine
5136156750
Sort imports
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-11-06 13:25:37 +01:00
Paul Elliott
8243ebf6b3
Merge pull request #8477 from paul-elliott-arm/full_no_platform_2_28
...
[Backport 2.28] Add build preset full_no_platform
2023-11-06 11:35:12 +00:00
Jerry Yu
0c835dbae3
move script to tests/scripts
...
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
2023-11-06 10:06:03 +08:00
Paul Elliott
6805037a45
Add build preset full_no_platform
...
Add build preset as above, and utilise it in
all.sh:component_test_no_platform.
Signed-off-by: Paul Elliott <paul.elliott@arm.com >
2023-11-03 19:24:56 +00:00
Dave Rodgman
7ff7965561
Update headers
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2023-11-03 12:04:52 +00:00
Tomás González
2bff1bfd47
New test suite for the low-level hash interface
...
Some basic test coverage for now:
* Nominal operation.
* Larger output buffer.
* Clone an operation and use it after the original operation stops.
Generate test data automatically. For the time being, only do that for
hashes that Python supports natively. Supporting all algorithms is future
work.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com >
2023-10-31 09:32:35 +00:00
Tomás González
734d22c03e
Move PSA information and dependency automation into their own module
...
This will let us use these features from other modules (yet to be created).
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com >
2023-10-31 09:31:20 +00:00
Tomás González
aaea3a3148
check_test_cases: Unify walk_compat_sh and walk_opt_sh into one
...
walk_compat_sh and walk_opt_sh are basically the same now, so:
* Merge them into one function.
* Use the --list-test-cases option for both of them.
* Rename this merged function as collect_from_script which seems
more appropriate as since it isn't iterating the script but
calling it.
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com >
2023-10-30 14:23:57 +00:00
Tom Cosgrove
c6d562815d
Merge pull request #8392 from lpy4105/backport-2.28/issue/support-cpuid-for-win32
...
Backport 2.28: Support cpuid for win32
2023-10-23 10:43:36 +00:00
Pengyu Lv
e6cbec8ea7
all.sh: build_mingw: test build default config without MBEDTLS_AESNI_C
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-10-20 09:54:41 +08:00
Gilles Peskine
7e36ad1f5c
Merge pull request #7983 from gilles-peskine-arm/sample-program-demos-2.28
...
Backport 2.28: Run sample program demo scripts in all.sh
2023-10-19 15:11:00 +00:00
Pengyu Lv
b2ca03251d
all.sh: build_mingw: test AESNI intrinsics
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2023-10-19 17:17:19 +08:00
Manuel Pégourié-Gonnard
0ee9dacb4d
Merge pull request #8122 from gilles-peskine-arm/ssl-test-no-legacy-2.28
...
Backport 2.28: Remove GNUTLS_LEGACY and OPENSSL_LEGACY (partly)
2023-10-18 07:13:15 +00:00
Thomas Daubney
0814a22490
Correct styling of Mbed TLS in documentation
...
Several bits of documentation were incorrectly styling Mbed TLS
as MbedTLS.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2023-10-06 17:37:01 +01:00
Gilles Peskine
3591cc61f2
Merge pull request #8103 from gilles-peskine-arm/7961-2.28
...
Backport 2.28: parts of #7961
2023-09-18 08:13:08 +00:00
Gilles Peskine
f08ca83b4f
Update spelling "mbed TLS" to "Mbed TLS"
...
The official spelling of the trade mark changed from all-lowercase "mbed"
to normal proper noun capitalization "Mbed" a few years ago. We've been
using the new spelling in new text but still have the old spelling in a
lot of text. This commit updates most occurrences of "mbed TLS":
```
sed -i -e 's/mbed TLS/Mbed TLS/g' $(git ls-files ':!ChangeLog' ':!tests/data_files/**' ':!tests/suites/*.data' ':!programs/x509/*' ':!configs/tfm*')
```
Justification for the omissions:
* `ChangeLog`: historical text.
* `test/data_files/**`, `tests/suites/*.data`, `programs/x509/*`: many
occurrences are significant names in certificates and such. Changing
the spelling would invalidate many signatures and tests.
* `configs/tfm*`: this is an imported file. We'll follow the upstream
updates.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2023-09-12 19:21:54 +02:00
Tom Cosgrove
5ffb19741d
config-wrapper-zeroize-memset.h should be user-config-zeroize-memset.h and not include mbedtls_config.h
...
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com >
2023-09-01 14:44:11 +01:00
Tom Cosgrove
7f18f44053
Move zeroize-as-memset into a config file under tests/
...
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com >
2023-09-01 14:43:48 +01:00
Tom Cosgrove
5117062bb6
Add a build to all.sh to check mbedtls_platform_zeroize() calls
...
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com >
2023-09-01 11:24:27 +01:00
Yanray Wang
930cbeeb5b
check_test_cases: add a comment to explain idx in walk_compat_sh
...
Signed-off-by: Yanray Wang <yanray.wang@arm.com >
2023-08-30 18:33:47 +08:00
Yanray Wang
67fe2644ae
check_test_cases.py: do not redirect stderr to stdout
...
Signed-off-by: Yanray Wang <yanray.wang@arm.com >
2023-08-30 11:41:28 +08:00
Yanray Wang
8844844582
check_test_cases.py: use check_output to capture error and return
...
This commit includes:
- use subprocess.check_output to report error and capture return
value
- add comment as a reminder for option --list-test-case
Signed-off-by: Yanray Wang <yanray.wang@arm.com >
2023-08-30 11:41:18 +08:00