Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #------------------------------------------------------------------------------- |
| 9 | # Define test suite to build. Used by the psa_arch_tests external component |
| 10 | # to configure what test suite gets built. |
| 11 | #------------------------------------------------------------------------------- |
| 12 | set(TS_ARCH_TEST_SUITE INITIAL_ATTESTATION CACHE STRING "Arch test suite") |
| 13 | |
| 14 | #------------------------------------------------------------------------------- |
| 15 | # Add attestation specific components. |
| 16 | # |
| 17 | #------------------------------------------------------------------------------- |
| 18 | add_components( |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 19 | TARGET "psa-api-test" |
Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 20 | BASE_DIR ${TS_ROOT} |
| 21 | COMPONENTS |
| 22 | "components/service/attestation/include" |
| 23 | ) |
| 24 | |
| 25 | # Configuration for mbedcrypto |
| 26 | set(MBEDTLS_USER_CONFIG_FILE |
| 27 | "${TS_ROOT}/components/service/crypto/client/cpp/config_mbedtls_user.h" |
| 28 | CACHE STRING "Configuration file for mbedcrypto") |
| 29 | |
| 30 | # Mbed TLS provides libmbedcrypto |
| 31 | include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake) |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 32 | target_link_libraries(psa-api-test PRIVATE mbedcrypto) |
Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 33 | |
| 34 | # Export psa crypto API |
| 35 | list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_CRYPTO_API_INCLUDE}) |
| 36 | |
| 37 | #------------------------------------------------------------------------------- |
| 38 | # Extend with components that are common across all deployments of |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 39 | # psa-api-test |
Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 40 | #------------------------------------------------------------------------------- |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 41 | include(../../psa-api-test.cmake REQUIRED) |