Asfandyar Orakzai
6eaa75a79d
fixed docstring sentence
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-10-10 19:55:40 +02:00
Asfandyar Orakzai
ac6f650a9f
fixed formating
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-19 10:03:05 +02:00
Asfandyar Orakzai
4ca4a930a9
fixed opaque schemas paths
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-18 12:37:53 +02:00
Asfandyar Orakzai
9e6170d95e
added some doc strings and fixed formating
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-17 23:37:16 +02:00
Asfandyar Orakzai
5c9569a2bc
fixed formating
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-17 23:14:29 +02:00
Asfandyar Orakzai
de08803170
refactored and addressed reviewer observations in generate_driver_wrappers.py
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-17 22:07:58 +02:00
asfand-silabs
b549776a23
Merge branch 'Mbed-TLS:development' into codegen_1.1
2022-09-17 19:54:01 +02:00
Gilles Peskine
1716f06ee3
Merge pull request #6093 from wernerlewis/bignum_test_script
...
Add bignum test case generation script
2022-09-17 10:37:26 +02:00
Werner Lewis
c2fb540c67
Use a script specific description in CLI help
...
Previous changes used the docstring of the test_generation module,
which does not inform a user about the script.
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-16 17:03:54 +01:00
Asfandyar Orakzai
39452a8ca4
fixed formating of driver generator script
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 13:02:06 +02:00
Asfandyar Orakzai
08f397a676
refactored generate_driver_wrappers.py
...
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
a2cac3224d
Update and document mbedtls extensions
...
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
1776dd9022
Doc improvements -Cosmetic
...
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
22c7827876
Schema and script improvements
...
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
01aa39e3ff
Arg parse improvements
...
Arg parse improved to update the input params path relative to
mbedtls_root passed, if the other params are not explicitly passed.
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
a78dc70a50
Fix JsonObject type for MyPy
...
Workaround a MyPy error by marking the driver json Object as of type
dict and indexable.
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
fdbbcba3eb
JSONschema and python improvements
...
* JSON Schema manually updated to be more semantically valid.
* Python script improved to be more verbose with exceptions
* Templating file improved by adding an additional macro.
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
25876b8abb
Adding JSONSchema to CI scripts
...
jsonschema is added to the ci scripts and Dockerfile
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
314380564c
PyLint errors fixed
...
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
04cfe34639
JSON Validation added
...
(1) JSON file structure altered a bit.
(2) JSON validated against schema.
(3) Corresponding changes in the python script.
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
05efa17549
JSON upgrade to give function names
...
Function names can be provided against entry points.
This helps to ensure easy migration for misnamed functions.
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Archana
e829cd6953
Driver Wrapper CodeGen Rev 1.1
...
(1) Add in driver jsons.
(2) Improve Python scripts to take JSON file directory and template
directory paths as arguments.
(3) Add in file augment template files to template common functionality
(4) render tempplates for Header files, ID generation and key
management.
(5) Changed driver ID nomenclature to be in synch with function names.
Signed-off-by: Archana <archana.madhavan@silabs.com >
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com >
2022-09-16 11:01:01 +02:00
Werner Lewis
07c830c164
Fix setting for default test suite directory
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-15 09:02:07 +01:00
Werner Lewis
52ae326ebb
Update references to file targets in docstrings
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-14 16:52:45 +01:00
Werner Lewis
00d02423a5
Remove argparser default for directory
...
This reverts commit f156c43702
. Adds a
comment to explain reasoning for current implementation.
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-14 16:52:42 +01:00
Werner Lewis
858cffde1e
Add toggle for test case count in descriptions
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-14 16:52:25 +01:00
Werner Lewis
34d6d3e4e5
Update comments/docstrings in TestGenerator
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-14 16:52:18 +01:00
Werner Lewis
56013081c7
Remove unused imports
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-02 12:57:37 +01:00
Werner Lewis
a4668a6b6c
Rework TestGenerator to add file targets
...
BaseTarget-derived targets are now added to TestGenerator.targets in
initialization. This reduces repeated code in generate_xxx_tests.py
scripts which use this framework.
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-09-02 11:56:34 +01:00
Werner Lewis
aaf3b79bbb
Use Python 3.5 style typing for dependencies
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-31 17:16:44 +01:00
Werner Lewis
466f036326
Add dependencies attribute to BaseTarget
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-31 17:01:38 +01:00
Werner Lewis
81f24443b7
Modify wording in docstrings
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-30 09:37:07 +01:00
Werner Lewis
76f45625e6
Fix trailing whitespace
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-25 13:21:45 +01:00
Werner Lewis
9df9faac5c
Use argparser default for targets
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-25 12:49:41 +01:00
Werner Lewis
6ef5436f3c
Clarify documentation
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-25 12:29:46 +01:00
Werner Lewis
f156c43702
Use argparser default for directory
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-25 11:31:55 +01:00
Werner Lewis
e3ad22ecf2
Fix TARGET types and code style
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-25 10:02:06 +01:00
Werner Lewis
6d654c6491
Raise NotImplementedError in abstract methods
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-25 09:56:51 +01:00
Werner Lewis
a195ce73f5
Disable pylint unused arg in __new__
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 18:10:55 +01:00
Werner Lewis
d03d2a3a91
Remove trailing whitespace in description
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 18:10:25 +01:00
Werner Lewis
cfd4768df2
Use __new__() for case counting
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 18:10:13 +01:00
Werner Lewis
2b527a394d
Split generate_tests to reduce code complexity
...
Previous implementation mixed the test case generation and the
recursive generation calls together. A separate method is added to
generate test cases for the current class' test function. This reduces
the need to override generate_tests().
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 18:10:13 +01:00
Werner Lewis
699e126942
Use ABCMeta for abstract classes
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 17:33:21 +01:00
Werner Lewis
169034ae63
Add details to docstrings
...
Clarification is added to docstrings, mostly in abstract classes.
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 17:30:30 +01:00
Werner Lewis
55e638ca57
Remove abbreviations and clarify attributes
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 17:29:08 +01:00
Werner Lewis
fbb75e3fc5
Separate common test generation classes/functions
...
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-24 15:08:56 +01:00
Dave Rodgman
fca2bcc733
Update bump_version.sh to recognise Makefile changes
...
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com >
2022-08-12 11:02:03 +01:00
Werner Lewis
8b2df74b12
Add bignum test generation framework
...
Adds python script for generation of bignum test cases, with initial
classes for mpi_cmp_mpi test cases. Build scripts are updated to
generate test data.
Signed-off-by: Werner Lewis <werner.lewis@arm.com >
2022-08-08 11:58:21 +01:00
Dave Rodgman
27036c9e28
Merge pull request #6142 from tom-cosgrove-arm/fix-comments-in-docs-and-comments
...
Fix a/an typos in doxygen and other comments
2022-07-29 12:59:05 +01:00
Tom Cosgrove
ce7f18c00b
Fix a/an typos in doxygen and other comments
...
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com >
2022-07-28 05:50:56 +01:00