Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check files component #133

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tests/scripts/components-basic-checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# components-basic-checks.sh
#
# Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later

# This file contains test components that are executed by all.sh

################################################################
#### Basic checks
################################################################

component_tf_psa_crypto_check_files () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The originating issue says we need 2 new components: component_tf_psa_crypto_check_files (added here) and component_tf_psa_crypto_check_python_files which I cannot find anywhere in the repo. Just to be sure, was it intentional to skip the 2nd?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it was edited since I last saw it. Let me add a new component for check_python_files.

msg "Check: file sanity checks (permissions, encodings)" # < 1s
$FRAMEWORK/scripts/check_files.py
}

components_tf_psa_crypto_check_python_files () {
msg "Lint: Python scripts"
$FRAMEWORK/scripts/check-python-files.sh
}