Skip to content

Commit

Permalink
Add check_generated_files component for TF-PSA-Crypto
Browse files Browse the repository at this point in the history
This commit adds a component for check_generated_files to TF-PSA-Crypto.
Since TF-PSA-Crypto uses CMake, there are no options to clean up the
directory.

Signed-off-by: Harry Ramsey <[email protected]>
  • Loading branch information
Harry-Ramsey committed Dec 11, 2024
1 parent e0b9851 commit 2b49b73
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tf-psa-crypto/tests/scripts/components-build-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ component_test_tf_psa_crypto_cmake_as_subdirectory () {
make
./cmake_subproject
}

component_check_generated_files () {
msg "Check: check-generated-files, files generated with cmake" # 2s
cmake -D CMAKE_BUILD_TYPE:String=Check -D GEN_FILES=ON "$TF_PSA_CRYPTO_ROOT_DIR"
tests/scripts/check-generated-files.sh

msg "Check: check-generated-files -u, files present" # 2s
tests/scripts/check-generated-files.sh -u
# Check that the generated files are considered up to date.
tests/scripts/check-generated-files.sh
}

0 comments on commit 2b49b73

Please sign in to comment.