Julian Hall | 2feec56 | 2022-09-07 09:22:45 +0100 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Baremetal driver test cases to test paltform driver operation from within |
| 7 | # a secure execution environment. |
| 8 | #------------------------------------------------------------------------------- |
| 9 | |
| 10 | #------------------------------------------------------------------------------- |
| 11 | # Components-under-test and test cases baremetal platform tests. |
| 12 | # |
| 13 | #------------------------------------------------------------------------------- |
| 14 | add_components(TARGET "env-test" |
| 15 | BASE_DIR ${TS_ROOT} |
| 16 | COMPONENTS |
| 17 | "components/service/crypto/backend/mbedcrypto" |
| 18 | "components/service/crypto/backend/mbedcrypto/trng_adapter/platform" |
| 19 | "components/service/crypto/backend/mbedcrypto/trng_adapter/test" |
| 20 | "components/service/secure_storage/include" |
| 21 | "components/service/secure_storage/frontend/psa/its" |
| 22 | "components/service/secure_storage/backend/secure_storage_client" |
| 23 | "components/config/test/sp" |
| 24 | ) |
| 25 | |
| 26 | target_sources(env-test PRIVATE |
| 27 | ${CMAKE_CURRENT_LIST_DIR}/registration/baremetal_tests.c |
| 28 | ) |
| 29 | |
| 30 | #------------------------------------------------------------------------------- |
| 31 | # Components used from external projects |
| 32 | # |
| 33 | #------------------------------------------------------------------------------- |
| 34 | |
| 35 | # Mbed TLS provides libmbedcrypto |
| 36 | include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake) |
| 37 | target_link_libraries(env-test PRIVATE mbedcrypto) |
| 38 | |
| 39 | #------------------------------------------------------------------------------- |
| 40 | # This test suite depends on platform specific drivers |
| 41 | # |
| 42 | #------------------------------------------------------------------------------- |
| 43 | add_platform(TARGET "env-test") |