zephyr/tests
Cheng Chang 419cb3da69 tests: bluetooth: classic: Add test suite l2cap.
IUT works as a l2cap server with basic mode. The peer device,
l2cap client with basic mode, is a PC with running `bumble` on it.
This test only performs the function of L2CAP basic mode.
Support multiple l2cap enerties in new shell l2cap_br,
which may support more test function.

In the test suite , there are two groups in test cases.
Group 1 Including case1-case8 focuses on connection and
disconnection around l2cap. The impact of active and passive
acl connectivity, disconnectivity and authentication as well as
disconnection from ACL without l2cap disconnect is tested.

Group2 Including case9-case14 revolves around the basic
 parameters of L2CAPserver configuration, data transfer.
Case 9:   Test l2cap connection with max MTU(0xffff).But the max mtu
which the stack supports is (CONFIG_BT_BUF_ACL_RX_SIZE - 4U = 196).
Case 10: Test l2cap connection with min MTU(0x30),set server mtu = 48,
client mtu = 0xffff, l2cap connect successfully,
client mtu = 0xffff, server mtu = 48.
Case 11: Test l2cap connection with min MTU(0x30),set server mtu < 48,
client mtu = 0xffff, l2cap connect fail.
Case 12: Test l2cap connection with min MTU(0x30),set server mtu = 48,
client mtu<48,l2cap connect successfully,
client mtu=48,server mtu=48.
Case 13: Test l2cap connection with invaild PSM.
Case 14: Test l2cap multi_channel connection and data tranfer.
Case 15: Stress Test. Repeat l2cap connect, disconnect operation.
Case 16: Stress Test. Repeat data transfer in a single connection.
In Case 15 and 16, if enlarging STRESS_TEST_MAX_COUNT and test fail,
you can enlarge timeout in  testcase.yml.

test_l2cap_server.py is a file containing real test cases.
test_l2cap_common.py is a common file. It encapsulates some
test function functions that are commonly used for test cases.

Signed-off-by: Cheng Chang <cheng.chang@nxp.com>
2025-07-19 09:51:31 +02:00
..
application_development tests: vector_table_relocation: fix a mis-use of SRAM_SIZE 2025-07-04 13:06:13 -05:00
arch tests: arch: arc: arc_vpx_lock: remove unused variable 2025-07-09 09:43:25 -05:00
benchmarks
bluetooth tests: bluetooth: classic: Add test suite l2cap. 2025-07-19 09:51:31 +02:00
boards tests: samples: Extend support for nRF54LM20A 2025-06-27 18:26:57 -05:00
boot tests: fix: limit platforms in boot.with_mcumgr.test_upgrade_ble 2025-07-04 16:41:01 -10:00
bsim tests: bsim: add early disconnect tests for iso and l2cap 2025-07-03 11:59:02 -05:00
cmake
crypto drivers; crypto: Remove TinyCrypt shim 2025-05-23 17:41:06 -04:00
ctest/base
drivers am243x_evm/am2434/r5f0_0: add SPI support 2025-07-19 09:47:37 +02:00
integration/kernel
kconfig tests: kconfig: functions: add tests for dt_compat_enabled_num 2025-06-27 10:07:01 -05:00
kernel tests: kernel: gen_isr_table: Don't use IRQ1 if already used 2025-07-02 17:58:08 -05:00
lib tests/lib/c_lib/thrd: Remove filter on NATIVE_APPLICATION 2025-07-19 09:38:15 +02:00
misc Revert "tests: misc: Fixing expected output on check_init_priorities test" 2025-07-16 16:39:36 -05:00
modules tests: do not use "sanity" word 2025-06-25 16:00:10 -10:00
net tests: net: socket: net_mgmt: mark unused function argument 2025-07-14 11:18:31 -10:00
posix posix: fnmatch: fix bugs in fnmatch(), see issue #55186 2025-06-09 17:05:40 -05:00
robot
subsys tests: settings: Add TF-M ITS backend tests 2025-07-19 09:45:56 +02:00
unit tests: unit: util: increase coverage of utf-8 utils 2025-06-17 16:09:06 +02:00
ztest tests: error_hook: Workaround for RX architecture 2025-06-26 14:07:03 +02:00
test_config_ci.yaml
test_config.yaml
tests.dox