blob: e597623d89cd04a2223db5f35e1d9208d5639196 [file] [log] [blame]
Raef Coles652bb8a2020-09-24 11:27:38 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8# Since the main test directory is a NS dir, this subdir is specifically made a
9# secure directory as it build the secure side test services
10if (TFM_MULTI_CORE_TOPOLOGY)
11 include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake)
Raef Coles34cffa72020-10-28 10:27:19 +000012 tfm_toolchain_reload_compiler()
Raef Coles652bb8a2020-09-24 11:27:38 +010013endif()
14
15# Secure tests are declared in this dir so that it can use the secure CPU
16# definitions
17add_library(tfm_s_tests INTERFACE)
18if (TFM_PARTITION_CRYPTO)
19 add_library(tfm_test_suite_crypto_s STATIC EXCLUDE_FROM_ALL)
20endif()
21if (TFM_PARTITION_INITIAL_ATTESTATION)
22 add_library(tfm_test_suite_attestation_s STATIC EXCLUDE_FROM_ALL)
23endif()
24if(TFM_PARTITION_INTERNAL_TRUSTED_STORAGE)
25 add_library(tfm_test_suite_its_s STATIC EXCLUDE_FROM_ALL)
26endif()
27if (TFM_PARTITION_PROTECTED_STORAGE)
28 add_library(tfm_test_suite_ps_s STATIC EXCLUDE_FROM_ALL)
29endif()
30if(NOT TFM_PSA_API AND TFM_PARTITION_AUDIT_LOG)
31 add_library(tfm_test_suite_audit_s STATIC EXCLUDE_FROM_ALL)
32endif()
33if(TFM_PARTITION_PLATFORM)
34 add_library(tfm_test_suite_platform_s STATIC EXCLUDE_FROM_ALL)
35endif()
36if(TFM_PSA_API)
37 add_library(tfm_test_suite_ipc_s STATIC EXCLUDE_FROM_ALL)
38endif()
39
40add_subdirectory(tfm_core_test)
41add_subdirectory(tfm_core_test_2)
Raef Coles4a722782020-10-12 10:11:18 +010042if(TFM_IRQ_TEST)
Raef Colesce57e062020-10-02 10:39:41 +010043 add_subdirectory(tfm_irq_test_service_1)
44endif()
Raef Coles652bb8a2020-09-24 11:27:38 +010045add_subdirectory(tfm_ps_test_service)
46add_subdirectory(tfm_secure_client_service)
47add_subdirectory(tfm_secure_client_2)
48if(TFM_PSA_API)
49 add_subdirectory(tfm_ipc_service)
50 add_subdirectory(tfm_ipc_client)
51endif()