Skip to content

Commit 4191208

Browse files
committed
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 <harry.ramsey@arm.com>
1 parent e0b9851 commit 4191208

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tf-psa-crypto/tests/scripts/components-build-system.sh

+11
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,14 @@ component_test_tf_psa_crypto_cmake_as_subdirectory () {
3131
make
3232
./cmake_subproject
3333
}
34+
35+
component_tf_psa_crypto_check_generated_files () {
36+
msg "Check: check-generated-files, files generated with cmake" # 2s
37+
cmake -D CMAKE_BUILD_TYPE:String=Check -D GEN_FILES=ON "$TF_PSA_CRYPTO_ROOT_DIR"
38+
tests/scripts/check-generated-files.sh
39+
40+
msg "Check: check-generated-files -u, files present" # 2s
41+
tests/scripts/check-generated-files.sh -u
42+
# Check that the generated files are considered up to date.
43+
tests/scripts/check-generated-files.sh
44+
}

0 commit comments

Comments
 (0)