1#
2# Arm SCP/MCP Software
3# Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set(TEST_SRC mod_scmi_sensor_req)
9set(TEST_FILE mod_scmi_sensor_req)
10
11if(TEST_ON_TARGET)
12    set(TEST_MODULE scmi_sensor_req)
13    set(MODULE_ROOT ${CMAKE_SOURCE_DIR}/module)
14else()
15    set(UNIT_TEST_TARGET mod_${TEST_MODULE}_unit_test)
16endif()
17
18set(MODULE_SRC ${MODULE_ROOT}/${TEST_MODULE}/src)
19set(MODULE_INC ${MODULE_ROOT}/${TEST_MODULE}/include)
20list(APPEND OTHER_MODULE_INC ${MODULE_ROOT}/sensor/include)
21list(APPEND OTHER_MODULE_INC ${MODULE_ROOT}/scmi/include)
22set(MODULE_UT_SRC ${CMAKE_CURRENT_LIST_DIR})
23set(MODULE_UT_INC ${CMAKE_CURRENT_LIST_DIR})
24set(MODULE_UT_MOCK_SRC ${CMAKE_CURRENT_LIST_DIR}/mocks)
25
26list(APPEND MOCK_REPLACEMENTS fwk_module)
27list(APPEND MOCK_REPLACEMENTS fwk_id)
28
29include(${SCP_ROOT}/unit_test/module_common.cmake)
30