tests: bluetooth: controller: Add ISO AL unit test
Ztest based unit test of ISO adaptation layer. Testing of unframed case, single SDU, recombined from one and two PDUs. Signed-off-by: Nirosharn Amarasinghe <niag@demant.com>
This commit is contained in:
parent
8b09d524a5
commit
0f8d9b430b
18
tests/bluetooth/ctrl_isoal/CMakeLists.txt
Normal file
18
tests/bluetooth/ctrl_isoal/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(bluetooth_ctrl_isoal)
|
||||
|
||||
zephyr_library_include_directories(
|
||||
${ZEPHYR_BASE}/subsys/bluetooth
|
||||
${ZEPHYR_BASE}/subsys/bluetooth/controller
|
||||
${ZEPHYR_BASE}/subsys/bluetooth/controller/include
|
||||
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
|
||||
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic/lll
|
||||
)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
|
||||
target_sources(app PRIVATE ${app_sources})
|
8
tests/bluetooth/ctrl_isoal/prj.conf
Normal file
8
tests/bluetooth/ctrl_isoal/prj.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
CONFIG_NET_BUF=y
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_ASSERT_VERBOSE=3
|
||||
CONFIG_ZTEST_STACKSIZE=4096
|
||||
CONFIG_ZTEST_MOCKING=y
|
||||
CONFIG_ZTEST_PARAMETER_COUNT=32
|
||||
|
||||
CONFIG_ZTEST_ASSERT_HOOK=y
|
1535
tests/bluetooth/ctrl_isoal/src/main.c
Normal file
1535
tests/bluetooth/ctrl_isoal/src/main.c
Normal file
File diff suppressed because it is too large
Load diff
5
tests/bluetooth/ctrl_isoal/testcase.yaml
Normal file
5
tests/bluetooth/ctrl_isoal/testcase.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
common:
|
||||
tags: bluetooth
|
||||
tests:
|
||||
bluetooth.isoal.test:
|
||||
platform_allow: native_posix
|
Loading…
Reference in a new issue