blob: 5ad0930b0c55627d72b1b1c26b86c04dac8f0d22 [file] [log] [blame]
Julian Halldd296222021-05-27 15:31:32 +01001#-------------------------------------------------------------------------------
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#-------------------------------------------------------------------------------
12set(TS_ARCH_TEST_SUITE CRYPTO CACHE STRING "Arch test suite")
13
14#-------------------------------------------------------------------------------
15# Crypto specific components
16#
17#-------------------------------------------------------------------------------
Julian Halld4071382021-07-07 16:45:53 +010018add_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 Halldd296222021-05-27 15:31:32 +010025
Julian Halld4071382021-07-07 16:45:53 +010026target_sources(psa-api-test PRIVATE
27 ${TS_ROOT}/deployments/psa-api-test/crypto/crypto_locator.c
28)
Julian Halldd296222021-05-27 15:31:32 +010029
30# Export psa crypto API
31list(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 Halld4071382021-07-07 16:45:53 +010035# psa-api-test
Julian Halldd296222021-05-27 15:31:32 +010036#-------------------------------------------------------------------------------
Julian Halld4071382021-07-07 16:45:53 +010037include(../../psa-api-test.cmake REQUIRED)