blob: 0427d9929eec787f07423d8fc8fe4aed7380daef [file] [log] [blame]
Kevin Peng62a87112020-07-07 15:07:46 +08001#-------------------------------------------------------------------------------
David Hub8dd1712021-02-09 15:07:46 +08002# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Kevin Peng62a87112020-07-07 15:07:46 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
Raef Coles652bb8a2020-09-24 11:27:38 +01008cmake_minimum_required(VERSION 3.13)
Kevin Peng62a87112020-07-07 15:07:46 +08009
David Hu73f259b2020-12-07 10:58:41 +080010add_library(tfm_test_framework_common INTERFACE)
11
12target_sources(tfm_test_framework_common
Raef Coles652bb8a2020-09-24 11:27:38 +010013 INTERFACE
David Hucf299b12021-09-12 16:41:48 +080014 ${CMAKE_CURRENT_SOURCE_DIR}/framework/test_framework.c
15 ${CMAKE_CURRENT_SOURCE_DIR}/framework/test_framework_helpers.c
16 ${CMAKE_CURRENT_SOURCE_DIR}/framework/test_framework_integ_test_helper.c
Raef Coles652bb8a2020-09-24 11:27:38 +010017)
Kevin Peng62a87112020-07-07 15:07:46 +080018
David Hu73f259b2020-12-07 10:58:41 +080019target_include_directories(tfm_test_framework_common
Raef Coles652bb8a2020-09-24 11:27:38 +010020 INTERFACE
21 framework
22)
Kevin Peng62a87112020-07-07 15:07:46 +080023
David Hucf299b12021-09-12 16:41:48 +080024# Build test services and add secure test suite targets
25include(secure_tests.cmake)
David Hu1a74bc52021-08-19 11:17:42 +080026
David Hucf299b12021-09-12 16:41:48 +080027# Include test suites at last after other targets are setup.
28add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/suites)