tests: BR: Add test suite sdp_server #81769
Open
+812
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IUT works as a SDP Server. The peer device, SDP client, is a PC with running
bumble
on it.Define 10 SDP records. 8 normal SDP records. one SDP record with large service name that cannot be discovered by peer since the data length exceeds the MTU of SDP. And one SDP record with large service name that can be discovered by peer but
continuation state
needs to be involved.By default, no SDP record will be registered.
Add shell command
register_sdp
to register specific SDP record. Add shell commandregister_sdp_all
to register all normal SDP records.Add shell command
register_sdp_large
to register SDP record with large service name that cannot be discovered by peer. Add shell commandregister_sdp_large_valid
to register SDP record with large service name that can be discovered by peer.In the test suite, there two test cases,
Case 1, discover the IUT.
Case 2, connect to the IUT. And send serial SDP discovery request.