Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 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 |
| 10 | if (TFM_MULTI_CORE_TOPOLOGY) |
| 11 | include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake) |
| 12 | endif() |
| 13 | |
| 14 | # Secure tests are declared in this dir so that it can use the secure CPU |
| 15 | # definitions |
| 16 | add_library(tfm_s_tests INTERFACE) |
| 17 | if (TFM_PARTITION_CRYPTO) |
| 18 | add_library(tfm_test_suite_crypto_s STATIC EXCLUDE_FROM_ALL) |
| 19 | endif() |
| 20 | if (TFM_PARTITION_INITIAL_ATTESTATION) |
| 21 | add_library(tfm_test_suite_attestation_s STATIC EXCLUDE_FROM_ALL) |
| 22 | endif() |
| 23 | if(TFM_PARTITION_INTERNAL_TRUSTED_STORAGE) |
| 24 | add_library(tfm_test_suite_its_s STATIC EXCLUDE_FROM_ALL) |
| 25 | endif() |
| 26 | if (TFM_PARTITION_PROTECTED_STORAGE) |
| 27 | add_library(tfm_test_suite_ps_s STATIC EXCLUDE_FROM_ALL) |
| 28 | endif() |
| 29 | if(NOT TFM_PSA_API AND TFM_PARTITION_AUDIT_LOG) |
| 30 | add_library(tfm_test_suite_audit_s STATIC EXCLUDE_FROM_ALL) |
| 31 | endif() |
| 32 | if(TFM_PARTITION_PLATFORM) |
| 33 | add_library(tfm_test_suite_platform_s STATIC EXCLUDE_FROM_ALL) |
| 34 | endif() |
| 35 | if(TFM_PSA_API) |
| 36 | add_library(tfm_test_suite_ipc_s STATIC EXCLUDE_FROM_ALL) |
| 37 | endif() |
| 38 | |
| 39 | add_subdirectory(tfm_core_test) |
| 40 | add_subdirectory(tfm_core_test_2) |
| 41 | add_subdirectory(tfm_ps_test_service) |
| 42 | add_subdirectory(tfm_secure_client_service) |
| 43 | add_subdirectory(tfm_secure_client_2) |
| 44 | if(TFM_PSA_API) |
| 45 | add_subdirectory(tfm_ipc_service) |
| 46 | add_subdirectory(tfm_ipc_client) |
| 47 | endif() |
| 48 | if(TFM_MULTI_CORE_TOPOLOGY) |
| 49 | add_subdirectory(tfm_multi_core_test) |
| 50 | endif() |