Skip to content

tests: Bluetooth: BR: Add general test suite for SMP #90858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CanWang001
Copy link
Contributor

IUT works as an SM Initiator/Responder. The peer device, SM Responder/Initiator, is a PC running bumble on it.

Add shell commands to create and manage L2CAP server and channel with different security level, reboot the board, and transfer data on the SDP channel.

In the test suite, there are 28 test cases to verify SMP functions. The test case list is:

  • BR_SM_INIT_001: Basic Pairing with No Input No Output Capability
  • BR_SM_INIT_002: Pairing with Display Only Capability
  • BR_SM_INIT_003: Pairing with Keyboard Only Capability
  • BR_SM_INIT_005: L2CAP Connection Failure After Successful Pairing
  • BR_SM_INIT_006: L2CAP Server with Incoming Connection
  • BR_SM_INIT_008: ACL Disconnection During Pairing
  • BR_SM_INIT_011: Repeated Pairing Between Same Devices
  • BR_SM_INIT_012: Security Level Escalation
  • BR_SM_INIT_013: Multiple Channel Establishment
  • BR_SM_INIT_017: Pairing Rejection by Remote Device
  • BR_SM_INIT_018: Pairing Timeout
  • BR_SM_INIT_021: Authentication Failure during Pairing
  • BR_SM_INIT_022: Secure Connection vs. Legacy Pairing Fallback
  • BR_SM_INIT_025: Rejection of Weak Pairing Methods
  • BR_SM_INIT_028: Reconnection After Key Deletion
  • BR_SM_INIT_029: Pairing with Delayed Response
  • BR_SM_INIT_030: Stress Testing with Multiple Connect/Disconnect Cycles
  • BR_SM_INIT_032: Power Loss Recovery
  • BR_SM_INIT_034: Pairing During Active Data Transfer
  • BR_SM_INIT_035: Pairing with Very Long PIN/Passkey
  • BR_SM_INIT_037: Pairing with Peripheral Requesting Maximum Key Size
  • BR_SM_INIT_039: Security Level Downgrade Attempt
  • BR_SM_RSP_001: Basic Non-bondable Pairing with No Input No Output
  • BR_SM_RSP_002: Display Only with Secure Connection
  • BR_SM_RSP_003: Keyboard Only with Dedicated Bonding
  • BR_SM_RSP_006: Security Level Enforcement
  • BR_SM_RSP_008: L2CAP Connection with Security Level 1
  • BR_SM_RSP_009: L2CAP Server with Security Level 2

@CanWang001 CanWang001 force-pushed the test_br_smp_general branch from 7c9d83f to 750c515 Compare May 30, 2025 10:52
@CanWang001 CanWang001 marked this pull request as ready for review May 30, 2025 11:15
IUT works as an SM Initiator/Responder. The peer device,
SM Responder/Initiator, is a PC running bumble on it.

Add shell commands to create and manage L2CAP server and channel with
different security level, reboot the board, and transfer data on the
SDP channel.

In the test suite, there are 28 test cases to verify SMP functions.
The test case list is:
- BR_SM_INIT_001: Basic Pairing with No Input No Output Capability
- BR_SM_INIT_002: Pairing with Display Only Capability
- BR_SM_INIT_003: Pairing with Keyboard Only Capability
- BR_SM_INIT_005: L2CAP Connection Failure After Successful Pairing
- BR_SM_INIT_006: L2CAP Server with Incoming Connection
- BR_SM_INIT_008: ACL Disconnection During Pairing
- BR_SM_INIT_011: Repeated Pairing Between Same Devices
- BR_SM_INIT_012: Security Level Escalation
- BR_SM_INIT_013: Multiple Channel Establishment
- BR_SM_INIT_017: Pairing Rejection by Remote Device
- BR_SM_INIT_018: Pairing Timeout
- BR_SM_INIT_021: Authentication Failure during Pairing
- BR_SM_INIT_022: Secure Connection vs. Legacy Pairing Fallback
- BR_SM_INIT_025: Rejection of Weak Pairing Methods
- BR_SM_INIT_028: Reconnection After Key Deletion
- BR_SM_INIT_029: Pairing with Delayed Response
- BR_SM_INIT_030: Stress Testing with Multiple Connect/Disconnect Cycles
- BR_SM_INIT_032: Power Loss Recovery
- BR_SM_INIT_034: Pairing During Active Data Transfer
- BR_SM_INIT_035: Pairing with Very Long PIN/Passkey
- BR_SM_INIT_037: Pairing with Peripheral Requesting Maximum Key Size
- BR_SM_INIT_039: Security Level Downgrade Attempt
- BR_SM_RSP_001: Basic Non-bondable Pairing with No Input No Output
- BR_SM_RSP_002: Display Only with Secure Connection
- BR_SM_RSP_003: Keyboard Only with Dedicated Bonding
- BR_SM_RSP_006: Security Level Enforcement
- BR_SM_RSP_008: L2CAP Connection with Security Level 1
- BR_SM_RSP_009: L2CAP Server with Security Level 2

Signed-off-by: Can Wang <can.wang@nxp.com>
@CanWang001 CanWang001 force-pushed the test_br_smp_general branch from 750c515 to 3fcb037 Compare June 3, 2025 02:58
Copy link

sonarqubecloud bot commented Jun 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants