Felix Conway
a15729d38e
Fix libtestdriver1 rewrite in include/mbedtls/private
...
Signed-off-by: Felix Conway <felix.conway@arm.com >
2025-08-27 13:33:02 +01:00
Anton Matkin
375fab7c73
Added a fix for the CI failure due to private access error
...
Signed-off-by: Anton Matkin <anton.matkin@arm.com >
2025-07-17 13:48:36 +02:00
Felix Conway
1ef121c9b9
Move script and update shebang to fix CI
...
Signed-off-by: Felix Conway <felix.conway@arm.com >
2025-04-09 09:51:13 +01:00
Felix Conway
e6605f9185
Adjust build scripts to accommodate public header move
...
Signed-off-by: Felix Conway <felix.conway@arm.com >
2025-04-08 14:26:29 +01:00
Ronald Cron
99226e9b9b
cmake: Generate test_keys.h and test_certs.h in the build tree
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-26 21:19:28 +01:00
Ronald Cron
81a674eee8
Adapt to generate_config_tests.py changes
...
Adapt builds and check-generated-files.sh to the fact
that generate_config_tests.py does not generate
test_suite_config.psa_boolean.data in Mbed TLS 4.x
context anymore.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-26 21:19:28 +01:00
Gilles Peskine
4773333dc6
New generated file: tests/opt-testcases/handshake-generated.sh
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-03-03 16:13:19 +01:00
Gilles Peskine
a074fe491a
Declare the new Python module used by generate_psa_tests.py
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-01-08 16:51:23 +01:00
Ronald Cron
27a1ac7409
make: Generate test_keys.h in tf-psa-crypto/framework as well
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-12-16 10:48:03 +01:00
Ronald Cron
f6d17ca13c
Switch to tf-psa-crypto/build_info.h
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-12-11 22:32:45 +01:00
Ronald Cron
f6eee5ad55
Move test_keys.h to include/test
...
Move test_keys.h to tests/include/test
instead of tests/src as it is used
outside of tests/src namely by
test_suite_pk.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-12-10 16:56:42 +01:00
Ronald Cron
cec78c33df
libtesdriver1: Copy only scripts from framework
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-12-10 16:54:05 +01:00
Ronald Cron
ce3c2dd30c
Merge pull request #9806 from ronald-cron-arm/finalize-split-preparation-1
...
Finalize split preparation-1
2024-12-05 13:23:09 +00:00
Ronald Cron
6a2cbe77fa
Move driver wrappers generation to tf-psa-crypto
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-12-04 14:25:02 +01:00
Ronald Cron
18047f0b01
Move config_adjust_legacy_crypto.h to tf-psa-crypto
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-12-04 14:25:02 +01:00
Minos Galanakis
23452f5c0b
libtestdriver: Addded crypto_config_test_driver
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-12-04 09:57:56 +00:00
Ronald Cron
e0ebf55a19
Move back *config_test_driver* headers from the framework
...
config_test_driver.h and
crypto_config_test_driver_extension.h are
configuration files thus they better fit in
mbedtls branches than in the framework.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-11-21 15:51:58 +01:00
David Horstmann
ed91f8890f
Replace tabs with spaces in Makefile
...
Tabs were introduced in a place where spaces are being used for
alignment. Correct this.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-19 17:15:30 +00:00
David Horstmann
0771253cf4
Properly clean instrument_record_status.h
...
The paths to this header in clean: targets were missed previously when
changing paths to reflect the move of the header to the framework.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:45 +00:00
David Horstmann
d962680cbc
Update generate path to instrument_record_status.h
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
dc45951cf6
Update path to PSA crypto alt headers
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
8a8d56aa87
Update make clean target with moved test helpers
...
Test helpers that are now moved to the framework must be cleaned
properly.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
e6a7c247fd
Update test_keys.h generation in Makefile
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
6bbd9c0b70
Update libtestdriver paths in tests/Makefile
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
cbab2ff06e
Update path substitution for TF-PSA-Crypto tests
...
This path substitution needs to be performed on the new paths in the
framework as well.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
69b12ee121
Add tests/Makefile targets for moved test helpers
...
Everything that has been moved to tests/src needs a Makefile target in
order to be built.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
1b457a9e4d
Undo incorrect path substitution
...
The find and replace of tests/src -> framework/tests/src and
tests/include -> framework/tests/include accidentally caused an
incorrect path substitution to be performed in tests/Makefile.
Undo this change and make the substitution correct again.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
David Horstmann
5b93d97b95
Update references to test helpers
...
Replace:
* tests/src -> framework/tests/src
* tests/include -> framework/tests/include
Except for occurrences of:
* tests/src/test_helpers (since this only contains ssl_helpers.c)
* tests/src/test_certs.h
* tests/include/alt_dummy
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-18 15:50:44 +00:00
Elena Uziunaite
b74c3eaf87
Adjust file path for generate_tls13_compat_tests.py
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-10-15 11:45:05 +01:00
Gilles Peskine
46771295f2
Merge pull request #9558 from gilles-peskine-arm/run-test-suites-on-subproject
...
Run test suites on subproject
2024-09-28 08:31:30 +00:00
Gilles Peskine
870ed2a914
Have make ssl-opt
generate tls13-compat.sh
(make edition)
...
This is necessary if you haven't run `make generated_files` first.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-09-25 10:28:48 +02:00
Gilles Peskine
907e49557b
Print a "Gen" line when generating a file
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-09-24 18:59:31 +02:00
Gilles Peskine
3943a1a3bf
Automatically generate tests/opt-testcases/tls13-compat.sh
...
`tests/opt-testcases/tls13-compat.sh` is supposed to be automatically
generated by `tests/scripts/generate_tls13_compat_tests.py`. So far, the
output has been updated by running the script manually and committing the
output. Switch to using our framework for generated files.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-09-24 18:59:31 +02:00
Gilles Peskine
ef2dd74a86
Run test suites with a single call to run-test-suites.pl
...
Before this commit, `make test` stopped after running the TLS tests if there
was a failure.
Have `run-test-suites.pl` take care of looking in all the directories, so
that the last line of output from `make test` is an accurate report of all
the test suites, not just the test suites from the last run of
`run-test-suites.pl`.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-09-11 12:50:05 +02:00
David Horstmann
6ddde67f11
Don't clean test_keys.h and test_certs.h
...
This is in keeping with other generated files (such as generated .data
files) that are added to releases.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-09-02 11:55:24 +02:00
David Horstmann
dcc78eee1f
Fix typos in make clean target for Windows
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-08-29 11:01:10 +02:00
Gilles Peskine
88a6baaaaa
Be compatible with GNU Make 3.81
...
GNU Make 3.81 is officially not supported (we require >= 3.82), but be nice
to XCode users who are stuck with 3.81.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-08 14:07:24 +02:00
Ronald Cron
901a675238
Adapt make build system
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-19 10:07:27 +02:00
Ronald Cron
4cc77a1681
Adapt libtestdriver1 build
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-10 08:10:40 +02:00
Ronald Cron
b2bdb78596
Adapt libtestdriver1 build
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-10 08:07:38 +02:00
Ronald Cron
c29afb684e
Adjust build systems
...
Adjust build systems such as we can built
Mbed TLS in the default and full configuration.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-10 08:07:38 +02:00
Ronald Cron
5e3c529614
Merge pull request #9172 from gilles-peskine-arm/test_suite_config-booleans
...
Report configuration settings in the outcome file
2024-07-03 13:09:07 +00:00
Valerio Setti
0917265014
makefile: allow to build and link test suites against psasim
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2024-07-02 15:45:55 +02:00
Gilles Peskine
1b22dd8765
Merge remote-tracking branch 'dev' into test_suite_config-booleans
...
Reconcile the framework submodule heads to the latest one.
2024-07-02 14:24:27 +02:00
Ronald Cron
52cc858aec
Adapt libtestdriver1 build
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-01 14:59:35 +02:00
Ronald Cron
3d817add46
Adjust build systems
...
Adjust build systems such as we can built
Mbed TLS in the default and full configuration.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-01 14:59:35 +02:00
Gilles Peskine
e154e6fe51
Generate config test cases for single options
...
Generate option-on and option-off cases for test_suite_config, for all
boolean options (MBEDTLS_xxx and PSA_WANT_xxx, collected from the mbedtls
and PSA config files).
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-06-20 17:12:48 +02:00
Gilles Peskine
b0aa75e7cc
Clean up generated files enumeration
...
Avoid having to list multiple generation scripts on the same line.
No intended semantic change.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-06-20 17:10:24 +02:00
Ronald Cron
1451a76958
Adapt libtestdriver1 build
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-06-13 09:02:30 +02:00
Ronald Cron
c7e9e367bb
Adjust build systems
...
Adjust build systems such as we can build
Mbed TLS in the default and full configuration.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-06-13 09:02:24 +02:00