mirror of https://github.com/thesofproject/sof.git
test: Rename universal_mocks.c to common_mocks.c
Old name was quite misleading, new one better describes file content Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
parent
3fdd722ea7
commit
b7c92f18e6
|
@ -54,10 +54,10 @@ add_custom_command(OUTPUT ${memory_mock_lds_out}
|
||||||
|
|
||||||
add_custom_target(ld_script_memory_mock DEPENDS ${memory_mock_lds_out})
|
add_custom_target(ld_script_memory_mock DEPENDS ${memory_mock_lds_out})
|
||||||
SET(arch_src ${PROJECT_SOURCE_DIR}/src/arch/xtensa/idc.c)
|
SET(arch_src ${PROJECT_SOURCE_DIR}/src/arch/xtensa/idc.c)
|
||||||
add_library(universal_mock STATIC ${PROJECT_SOURCE_DIR}/test/cmocka/src/universal_mocks.c)
|
add_library(common_mock STATIC ${PROJECT_SOURCE_DIR}/test/cmocka/src/common_mocks.c)
|
||||||
target_link_libraries(universal_mock PRIVATE sof_options)
|
target_link_libraries(common_mock PRIVATE sof_options)
|
||||||
link_libraries(universal_mock)
|
link_libraries(common_mock)
|
||||||
sof_append_relative_path_definitions(universal_mock)
|
sof_append_relative_path_definitions(common_mock)
|
||||||
|
|
||||||
# creates exectuable for new test and adds it as test for ctest
|
# creates exectuable for new test and adds it as test for ctest
|
||||||
function(cmocka_test test_name)
|
function(cmocka_test test_name)
|
||||||
|
|
Loading…
Reference in New Issue