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 CRYPTO CACHE STRING "Arch test suite") |
| 13 | |
| 14 | #------------------------------------------------------------------------------- |
| 15 | # Crypto specific components |
| 16 | # |
| 17 | #------------------------------------------------------------------------------- |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 18 | add_components( |
| 19 | TARGET "psa-api-test" |
| 20 | BASE_DIR ${TS_ROOT} |
| 21 | COMPONENTS |
| 22 | "components/service/crypto/include" |
| 23 | "components/service/crypto/client/psa" |
| 24 | ) |
Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 25 | |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 26 | target_sources(psa-api-test PRIVATE |
| 27 | ${TS_ROOT}/deployments/psa-api-test/crypto/crypto_locator.c |
| 28 | ) |
Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 29 | |
| 30 | # Export psa crypto API |
| 31 | list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_CRYPTO_API_INCLUDE}) |
| 32 | |
| 33 | #------------------------------------------------------------------------------- |
| 34 | # Extend with components that are common across all deployments of |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 35 | # psa-api-test |
Julian Hall | dd29622 | 2021-05-27 15:31:32 +0100 | [diff] [blame] | 36 | #------------------------------------------------------------------------------- |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 37 | include(../../psa-api-test.cmake REQUIRED) |