063c039480
This adds set of unit tests for simple network buffers. The suite is based of the test cases that are already defined for network buffers. Those test_net_buf_byte_order test case have been split to smaller tests testing one functionality at a time. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
19 lines
378 B
CMake
19 lines
378 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
project(buf_simple)
|
|
|
|
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
add_subdirectory(${ZEPHYR_BASE}/tests/net/mocks net_mocks)
|
|
|
|
target_link_libraries(testbinary PRIVATE net_mocks)
|
|
|
|
target_sources(testbinary
|
|
PRIVATE
|
|
src/main.c
|
|
|
|
${ZEPHYR_BASE}/subsys/net/buf_simple.c
|
|
)
|