From 2b49b73da1cdcd06ee66c0ff035e18055c3d2dc2 Mon Sep 17 00:00:00 2001 From: Harry Ramsey Date: Wed, 11 Dec 2024 11:54:58 +0000 Subject: [PATCH] Add check_generated_files component for TF-PSA-Crypto 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 --- .../tests/scripts/components-build-system.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tf-psa-crypto/tests/scripts/components-build-system.sh b/tf-psa-crypto/tests/scripts/components-build-system.sh index 5de9dc787611..1ddc042aa25e 100644 --- a/tf-psa-crypto/tests/scripts/components-build-system.sh +++ b/tf-psa-crypto/tests/scripts/components-build-system.sh @@ -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 +}