blob: 4063175d7127b74e4caf8a83450d422b3b169812 [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#-------------------------------------------------------------------------------
Julian Hallb57aa0d2021-07-13 10:34:59 +010015# The arch test build system puts its build output under a test suite specific
16# subdirectory. The subdirectory name is different from the test suite name
17# so an additional define is needed to obtain the built library.
18#-------------------------------------------------------------------------------
19set(TS_ARCH_TEST_BUILD_SUBDIR crypto CACHE STRING "Arch test build subdirectory")
20
21#-------------------------------------------------------------------------------
Julian Halldd296222021-05-27 15:31:32 +010022# Crypto specific components
23#
24#-------------------------------------------------------------------------------
Julian Halld4071382021-07-07 16:45:53 +010025add_components(
26 TARGET "psa-api-test"
27 BASE_DIR ${TS_ROOT}
28 COMPONENTS
29 "components/service/crypto/include"
30 "components/service/crypto/client/psa"
31)
Julian Halldd296222021-05-27 15:31:32 +010032
Julian Halld4071382021-07-07 16:45:53 +010033target_sources(psa-api-test PRIVATE
34 ${TS_ROOT}/deployments/psa-api-test/crypto/crypto_locator.c
35)
Julian Halldd296222021-05-27 15:31:32 +010036
Julian Hallb57aa0d2021-07-13 10:34:59 +010037#-------------------------------------------------------------------------------
38# Advertise PSA API include paths to PSA Arch tests
39#
40#-------------------------------------------------------------------------------
Julian Halldd296222021-05-27 15:31:32 +010041list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_CRYPTO_API_INCLUDE})
42
43#-------------------------------------------------------------------------------
44# Extend with components that are common across all deployments of
Julian Halld4071382021-07-07 16:45:53 +010045# psa-api-test
Julian Halldd296222021-05-27 15:31:32 +010046#-------------------------------------------------------------------------------
Julian Halld4071382021-07-07 16:45:53 +010047include(../../psa-api-test.cmake REQUIRED)