samples and tests: Use non-environmental zephyr base variable
This drops using the environmental part when referencing ZEPHYR_BASE as the environment value does not have to be set and, in most cases, is no longer set at all. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
parent
46e93f67a6
commit
0bad35de45
48 changed files with 166 additions and 165 deletions
|
@ -7,4 +7,4 @@ project(central_ht)
|
||||||
FILE(GLOB app_sources src/*.c)
|
FILE(GLOB app_sources src/*.c)
|
||||||
target_sources(app PRIVATE ${app_sources})
|
target_sources(app PRIVATE ${app_sources})
|
||||||
|
|
||||||
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth)
|
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)
|
||||||
|
|
|
@ -14,7 +14,7 @@ FILE(GLOB app_sources src/*.c)
|
||||||
target_sources(app PRIVATE ${app_sources})
|
target_sources(app PRIVATE ${app_sources})
|
||||||
target_sources_ifdef(CONFIG_NET_DHCPV4 app PRIVATE src/dhcp.c)
|
target_sources_ifdef(CONFIG_NET_DHCPV4 app PRIVATE src/dhcp.c)
|
||||||
|
|
||||||
include($ENV{ZEPHYR_BASE}/samples/net/common/common.cmake)
|
include(${ZEPHYR_BASE}/samples/net/common/common.cmake)
|
||||||
|
|
||||||
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
|
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,5 @@ target_sources(app PRIVATE ${app_sources} )
|
||||||
zephyr_include_directories(
|
zephyr_include_directories(
|
||||||
$ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/
|
$ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/
|
||||||
$ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/
|
$ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/audio/
|
${ZEPHYR_BASE}/subsys/bluetooth/host/audio/
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,5 +22,5 @@ target_sources(app PRIVATE
|
||||||
zephyr_include_directories(
|
zephyr_include_directories(
|
||||||
$ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/
|
$ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/
|
||||||
$ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/
|
$ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/audio/
|
${ZEPHYR_BASE}/subsys/bluetooth/host/audio/
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,5 +21,5 @@ target_sources(app PRIVATE
|
||||||
zephyr_include_directories(
|
zephyr_include_directories(
|
||||||
$ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/
|
$ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/
|
||||||
$ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/
|
$ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/
|
${ZEPHYR_BASE}/subsys/bluetooth/host/
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,5 +7,5 @@ project(app)
|
||||||
target_sources(app PRIVATE
|
target_sources(app PRIVATE
|
||||||
src/test_bt_crypto_ccm.c
|
src/test_bt_crypto_ccm.c
|
||||||
|
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/aes_ccm.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/aes_ccm.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,13 +10,13 @@ zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/controller/)
|
||||||
|
|
||||||
if(CONFIG_SOC_COMPATIBLE_NRF)
|
if(CONFIG_SOC_COMPATIBLE_NRF)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
||||||
)
|
)
|
||||||
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/hci/openisa
|
${ZEPHYR_BASE}/bluetooth/hci/openisa
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -17,19 +17,19 @@ target_include_directories(app PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
||||||
|
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/
|
${ZEPHYR_BASE}/subsys/bluetooth/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_SOC_COMPATIBLE_NRF)
|
if(CONFIG_SOC_COMPATIBLE_NRF)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
||||||
)
|
)
|
||||||
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/hci/openisa
|
${ZEPHYR_BASE}/bluetooth/hci/openisa
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -18,19 +18,19 @@ target_include_directories(app PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
||||||
|
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/
|
${ZEPHYR_BASE}/subsys/bluetooth/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_SOC_COMPATIBLE_NRF)
|
if(CONFIG_SOC_COMPATIBLE_NRF)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
||||||
)
|
)
|
||||||
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/hci/openisa
|
${ZEPHYR_BASE}/bluetooth/hci/openisa
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -16,19 +16,19 @@ target_include_directories(app PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
||||||
|
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/
|
${ZEPHYR_BASE}/subsys/bluetooth/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_SOC_COMPATIBLE_NRF)
|
if(CONFIG_SOC_COMPATIBLE_NRF)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
||||||
)
|
)
|
||||||
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/hci/openisa
|
${ZEPHYR_BASE}/bluetooth/hci/openisa
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -16,19 +16,19 @@ target_include_directories(app PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
|
||||||
|
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/
|
${ZEPHYR_BASE}/subsys/bluetooth/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_SOC_COMPATIBLE_NRF)
|
if(CONFIG_SOC_COMPATIBLE_NRF)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
|
||||||
)
|
)
|
||||||
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
||||||
zephyr_library_include_directories(
|
zephyr_library_include_directories(
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
|
||||||
$ENV{ZEPHYR_BASE}/bluetooth/hci/openisa
|
${ZEPHYR_BASE}/bluetooth/hci/openisa
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,16 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries(testbinary PRIVATE mocks host_mocks)
|
target_link_libraries(testbinary PRIVATE mocks host_mocks)
|
||||||
|
|
||||||
target_sources(testbinary
|
target_sources(testbinary
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,15 @@ if (CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
add_compile_options(-Wno-error=format-zero-length -Wno-format-zero-length)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE
|
|
||||||
$ENV{ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
|
||||||
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks mocks)
|
||||||
|
|
||||||
|
include_directories(BEFORE
|
||||||
|
${ZEPHYR_BASE}/tests/bluetooth/host/id/mocks
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(testbinary PRIVATE mocks host_mocks)
|
target_link_libraries(testbinary PRIVATE mocks host_mocks)
|
||||||
|
|
||||||
target_sources(testbinary
|
target_sources(testbinary
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_add_type_invalid_inputs.c
|
src/test_suite_add_type_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,6 +17,6 @@ target_sources(testbinary
|
||||||
src/test_suite_clear_invalid_inputs.c
|
src/test_suite_clear_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_find_invalid_inputs.c
|
src/test_suite_find_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_find_addr_invalid_inputs.c
|
src/test_suite_find_addr_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_find_irk_invalid_inputs.c
|
src/test_suite_find_irk_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_foreach_bond_invalid_inputs.c
|
src/test_suite_foreach_bond_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_foreach_type_invalid_inputs.c
|
src/test_suite_foreach_type_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,10 +16,10 @@ target_sources(testbinary
|
||||||
src/test_suite_full_list_invalid_values.c
|
src/test_suite_full_list_invalid_values.c
|
||||||
src/test_suite_full_list_no_overwrite.c
|
src/test_suite_full_list_no_overwrite.c
|
||||||
src/test_suite_full_list_overwrite_oldest.c
|
src/test_suite_full_list_overwrite_oldest.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -14,10 +14,10 @@ target_sources(testbinary
|
||||||
PRIVATE
|
PRIVATE
|
||||||
src/main.c
|
src/main.c
|
||||||
src/test_suite_get_type_invalid_inputs.c
|
src/test_suite_get_type_invalid_inputs.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,6 +16,6 @@ target_sources(testbinary
|
||||||
src/test_suite_store_invalid_inputs.c
|
src/test_suite_store_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,6 +17,6 @@ target_sources(testbinary
|
||||||
src/test_suite_update_usage_invalid_inputs.c
|
src/test_suite_update_usage_invalid_inputs.c
|
||||||
|
|
||||||
# Unit under test
|
# Unit under test
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
||||||
$ENV{ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ target_sources(app
|
||||||
)
|
)
|
||||||
|
|
||||||
set(includes
|
set(includes
|
||||||
"$ENV{ZEPHYR_BASE}/subsys/net/lib/lwm2m/"
|
"${ZEPHYR_BASE}/subsys/net/lib/lwm2m/"
|
||||||
"src/"
|
"src/"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue