Manuel Pégourié-Gonnard | 8bcad48 | 2024-10-23 10:41:15 +0200 | [diff] [blame] | 1 | # components-build-system.sh |
| 2 | # |
| 3 | # Copyright The Mbed TLS Contributors |
| 4 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
| 5 | |
| 6 | # This file contains test components that are executed by all.sh |
| 7 | |
| 8 | ################################################################ |
| 9 | #### Build System Testing |
| 10 | ################################################################ |
| 11 | |
| 12 | component_test_cmake_tf_psa_crypto_out_of_source () { |
| 13 | msg "build: cmake tf-psa-crypto 'out-of-source' build" |
| 14 | TF_PSA_CRYPTO_ROOT_DIR="$PWD" |
| 15 | mkdir "$OUT_OF_SOURCE_DIR" |
| 16 | cd "$OUT_OF_SOURCE_DIR" |
| 17 | # Note: Explicitly generate files as these are turned off in releases |
| 18 | cmake -D CMAKE_BUILD_TYPE:String=Check -D GEN_FILES=ON "$TF_PSA_CRYPTO_ROOT_DIR" |
| 19 | make |
| 20 | msg "test: cmake tf-psa-crypto 'out-of-source' build" |
| 21 | make test |
| 22 | cd "$TF_PSA_CRYPTO_ROOT_DIR" |
| 23 | rm -rf "$OUT_OF_SOURCE_DIR" |
| 24 | } |