mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 14:08:39 +00:00
Merge pull request #6705 from davidhorstmann-arm/code-style-script-non-corrected
Add code style correction script
This commit is contained in:
commit
1a100b69a4
5 changed files with 437 additions and 1 deletions
|
|
@ -3662,6 +3662,26 @@ support_test_psa_compliance () {
|
|||
[ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ]
|
||||
}
|
||||
|
||||
component_test_corrected_code_style () {
|
||||
./scripts/code_style.py --fix
|
||||
|
||||
msg "build: make, default config (out-of-box), corrected code style"
|
||||
make
|
||||
|
||||
msg "test: main suites make, default config (out-of-box), corrected code style"
|
||||
make test
|
||||
|
||||
# Clean up code-style corrections
|
||||
git checkout -- .
|
||||
}
|
||||
|
||||
support_test_corrected_code_style() {
|
||||
case $(uncrustify --version) in
|
||||
*0.75.1*) true;;
|
||||
*) false;;
|
||||
esac
|
||||
}
|
||||
|
||||
component_check_python_files () {
|
||||
msg "Lint: Python scripts"
|
||||
tests/scripts/check-python-files.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue