zephyr/tests/bluetooth
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
..
addr
adv
at
audio Bluetooth: CAP: Add cap_unicast_group API 2025-06-17 08:20:25 +02:00
bluetooth
bt_crypto
bt_crypto_ccm
buf
classic tests: bluetooth: classic: Add test suite l2cap. 2025-07-19 09:51:31 +02:00
common/testlib
controller tests: all: Fix remaining issues reported by string validation 2025-05-27 09:16:08 +02:00
df Bluetooth: tests: Use bt_hci_cmd_alloc() 2025-06-23 12:44:53 -07:00
gap
gatt tests/bluetooth & bsim: Fix code compliance issues 2025-05-21 12:35:28 +02:00
hci
hci_codecs_info Bluetooth: tests: Use bt_hci_cmd_alloc() 2025-06-23 12:44:53 -07:00
hci_prop_evt
hci_uart_async
host bluetooth: host: Do not try to set NRPA when scanning with identity 2025-07-08 13:37:26 -05:00
host_config_variants
host_long_adv_recv
init
l2cap
mesh tests: all: Fix remaining issues reported by string validation 2025-05-27 09:16:08 +02:00
mesh_shell
qualification tests: Bluetooth: Fix DFUM and MBTM in PTS ICS 2025-06-13 15:42:53 -07:00
shell bluetooth: shell: the setting is forced as disabled for mimxrt1170_evkb 2025-05-27 16:44:45 +02:00
smp
tester tests: Bluetooth: Tester: VCP BSIM test 2025-07-01 10:54:09 -10:00
uuid