mirror of https://github.com/thesofproject/sof.git
test: rename CHECK to UNIT_TEST
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
parent
939f500c86
commit
d33f8c99a1
|
@ -39,7 +39,7 @@
|
|||
#define arch_memcpy(dest, src, size) \
|
||||
xthal_memcpy(dest, src, size)
|
||||
|
||||
#if __XCC__ && !defined(CHECK)
|
||||
#if __XCC__ && !defined(UNIT_TEST)
|
||||
#define arch_bzero(ptr, size) \
|
||||
memset_s(ptr, size, 0, size)
|
||||
#else
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
* \brief Usage at the end of comp file: DECLARE_COMPONENT(sys_comp_*_init);
|
||||
* @{
|
||||
*/
|
||||
#ifdef CHECK
|
||||
#ifdef UNIT_TEST
|
||||
#define DECLARE_COMPONENT(init)
|
||||
#else
|
||||
#define DECLARE_COMPONENT(init) __attribute__((__used__)) \
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
/* UT_STATIC makes function unit-testable (non-static) when built for unit tests
|
||||
*/
|
||||
#ifdef CHECK
|
||||
#ifdef UNIT_TEST
|
||||
#define UT_STATIC
|
||||
#else
|
||||
#define UT_STATIC static
|
||||
|
|
|
@ -66,7 +66,7 @@ function(cmocka_test test_name)
|
|||
target_link_libraries(${test_name} PRIVATE "-T${memory_mock_lds_out}")
|
||||
target_link_libraries(${test_name} PRIVATE cmocka)
|
||||
target_link_libraries(${test_name} PRIVATE sof_options)
|
||||
target_compile_definitions(${test_name} PRIVATE -DCHECK)
|
||||
target_compile_definitions(${test_name} PRIVATE -DUNIT_TEST)
|
||||
|
||||
# Cmocka requires this define for stdint.h that defines uintptr
|
||||
target_compile_definitions(${test_name} PRIVATE -D_UINTPTR_T_DEFINED)
|
||||
|
|
Loading…
Reference in New Issue