Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Sherry Zhang | 92c499a | 2021-03-08 18:14:15 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
David Hu | cf299b1 | 2021-09-12 16:41:48 +0800 | [diff] [blame] | 8 | # Install directory for non-secure interface API of test services |
| 9 | # NS can pick up those interface files to build non-secure test cases |
| 10 | set(TEST_SERVICE_SRC_INSTALL_DIR ${TFM_INSTALL_PATH}/interface/src/test_service) |
| 11 | set(TEST_SERVICE_INC_INSTALL_DIR ${TFM_INSTALL_PATH}/interface/include/test_service) |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 12 | |
Kevin Peng | ac81587 | 2021-10-25 17:59:59 +0800 | [diff] [blame] | 13 | if (TFM_PARTITION_ATTESTATION_TEST) |
shejia01 | e0dd80a | 2021-07-12 17:47:50 +0800 | [diff] [blame] | 14 | add_subdirectory(tfm_attest_test_service) |
Kevin Peng | a860433 | 2021-04-23 17:33:30 +0800 | [diff] [blame] | 15 | endif() |
shejia01 | e0dd80a | 2021-07-12 17:47:50 +0800 | [diff] [blame] | 16 | |
| 17 | if (TEST_NS_CORE) |
| 18 | add_subdirectory(tfm_core_test) |
| 19 | add_subdirectory(tfm_core_test_2) |
Kevin Peng | b0c06b4 | 2021-05-11 16:30:53 +0800 | [diff] [blame] | 20 | endif() |
shejia01 | e0dd80a | 2021-07-12 17:47:50 +0800 | [diff] [blame] | 21 | |
Kevin Peng | ac81587 | 2021-10-25 17:59:59 +0800 | [diff] [blame] | 22 | if (TFM_PARTITION_IPC_TEST) |
shejia01 | e0dd80a | 2021-07-12 17:47:50 +0800 | [diff] [blame] | 23 | add_subdirectory(tfm_ipc_client) |
| 24 | add_subdirectory(tfm_ipc_service) |
| 25 | endif() |
| 26 | |
| 27 | if (TEST_S_PS) |
| 28 | add_subdirectory(tfm_ps_test_service) |
| 29 | endif() |
| 30 | |
| 31 | if (TEST_FRAMEWORK_S) |
David Hu | 4f538e4 | 2020-11-09 16:46:17 +0800 | [diff] [blame] | 32 | add_subdirectory(tfm_secure_client_service) |
| 33 | add_subdirectory(tfm_secure_client_2) |
| 34 | endif() |
shejia01 | e0dd80a | 2021-07-12 17:47:50 +0800 | [diff] [blame] | 35 | |
| 36 | if (TEST_NS_SLIH_IRQ) |
| 37 | add_subdirectory(tfm_slih_test_service) |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 38 | endif() |
shejia01 | e0dd80a | 2021-07-12 17:47:50 +0800 | [diff] [blame] | 39 | |
| 40 | if (TEST_NS_FLIH_IRQ) |
| 41 | add_subdirectory(tfm_flih_test_service) |
| 42 | endif() |
Feder Liang | db53c6b | 2021-09-07 15:42:09 +0800 | [diff] [blame] | 43 | |
| 44 | if (TEST_S_FPU) |
| 45 | add_subdirectory(tfm_fpu_service) |
| 46 | endif() |
Mingyang Sun | 5df4624 | 2021-11-03 18:31:04 +0800 | [diff] [blame^] | 47 | |
| 48 | if (TEST_NS_SFN_BACKEND) |
| 49 | add_subdirectory(tfm_test_sfn_partitions/sfn_partition1) |
| 50 | add_subdirectory(tfm_test_sfn_partitions/sfn_partition2) |
| 51 | endif() |