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) 9set(TEST_FILE mod_scmi) 10 11if(TEST_ON_TARGET) 12 set(TEST_MODULE scmi) 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) 20set(MODULE_UT_SRC ${CMAKE_CURRENT_LIST_DIR}) 21set(MODULE_UT_INC ${CMAKE_CURRENT_LIST_DIR}) 22set(MODULE_UT_MOCK_SRC ${CMAKE_CURRENT_LIST_DIR}/mocks) 23 24list(APPEND MOCK_REPLACEMENTS fwk_module) 25list(APPEND MOCK_REPLACEMENTS fwk_id) 26 27include(${SCP_ROOT}/unit_test/module_common.cmake) 28