* [PATCH BlueZ] tools/mgmt-tester: Add Read OOB Ext Data test cases
@ 2021-08-18 18:31 Brian Gix
2021-08-18 19:03 ` [BlueZ] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Brian Gix @ 2021-08-18 18:31 UTC (permalink / raw)
To: linux-bluetooth; +Cc: luiz.dentz, brian.gix, luiz.von.dentz, hj.tedd.an
Read Local OOB Ext Data - Invalid index
Read Local OOB Ext Data - Legacy pairing
Read Local OOB Ext Data - Success SSP
Read Local OOB Ext Data - Success SC
---
tools/mgmt-tester.c | 50 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 504dc1497..3dcf4f319 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -5238,6 +5238,44 @@ static const struct generic_data read_local_oob_success_sc_test = {
.expect_hci_command = BT_HCI_CMD_READ_LOCAL_OOB_EXT_DATA,
};
+static const uint8_t oob_type_bredr[] = { 0x01 };
+static const struct generic_data read_local_oob_ext_invalid_index_test = {
+ .send_index_none = true,
+ .send_opcode = MGMT_OP_READ_LOCAL_OOB_EXT_DATA,
+ .send_param = oob_type_bredr,
+ .send_len = sizeof(oob_type_bredr),
+ .expect_status = MGMT_STATUS_INVALID_INDEX,
+};
+
+static const struct generic_data read_local_oob_ext_legacy_pairing_test = {
+ .setup_settings = settings_powered,
+ .send_opcode = MGMT_OP_READ_LOCAL_OOB_EXT_DATA,
+ .send_param = oob_type_bredr,
+ .send_len = sizeof(oob_type_bredr),
+ .expect_ignore_param = true,
+ .expect_status = MGMT_STATUS_NOT_SUPPORTED,
+};
+
+static const struct generic_data read_local_oob_ext_success_ssp_test = {
+ .setup_settings = settings_powered_ssp,
+ .send_opcode = MGMT_OP_READ_LOCAL_OOB_EXT_DATA,
+ .send_param = oob_type_bredr,
+ .send_len = sizeof(oob_type_bredr),
+ .expect_status = MGMT_STATUS_SUCCESS,
+ .expect_ignore_param = true,
+ .expect_hci_command = BT_HCI_CMD_READ_LOCAL_OOB_DATA,
+};
+
+static const struct generic_data read_local_oob_ext_success_sc_test = {
+ .setup_settings = settings_powered_sc,
+ .send_opcode = MGMT_OP_READ_LOCAL_OOB_EXT_DATA,
+ .send_param = oob_type_bredr,
+ .send_len = sizeof(oob_type_bredr),
+ .expect_status = MGMT_STATUS_SUCCESS,
+ .expect_ignore_param = true,
+ .expect_hci_command = BT_HCI_CMD_READ_LOCAL_OOB_EXT_DATA,
+};
+
static const uint8_t le_states_conn_slave_adv_connectable[] = {
0x00, 0x00, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00};
static const uint8_t le_states_conn_slave_adv_non_connectable[] = {
@@ -12026,6 +12064,18 @@ int main(int argc, char *argv[])
test_bredrle("Read Local OOB Data - Success SC",
&read_local_oob_success_sc_test,
NULL, test_command_generic);
+ test_bredrle("Read Local OOB Ext Data - Invalid index",
+ &read_local_oob_ext_invalid_index_test,
+ NULL, test_command_generic);
+ test_bredr20("Read Local OOB Ext Data - Legacy pairing",
+ &read_local_oob_ext_legacy_pairing_test,
+ NULL, test_command_generic);
+ test_bredrle("Read Local OOB Ext Data - Success SSP",
+ &read_local_oob_ext_success_ssp_test,
+ NULL, test_command_generic);
+ test_bredrle("Read Local OOB Ext Data - Success SC",
+ &read_local_oob_ext_success_sc_test,
+ NULL, test_command_generic);
test_bredrle("Device Found - Advertising data - Zero padded",
&device_found_gtag,
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [BlueZ] tools/mgmt-tester: Add Read OOB Ext Data test cases
2021-08-18 18:31 [PATCH BlueZ] tools/mgmt-tester: Add Read OOB Ext Data test cases Brian Gix
@ 2021-08-18 19:03 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2021-08-18 19:03 UTC (permalink / raw)
To: linux-bluetooth, brian.gix
[-- Attachment #1: Type: text/plain, Size: 1953 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=533641
---Test result---
Test Summary:
CheckPatch PASS 0.30 seconds
GitLint PASS 0.11 seconds
Prep - Setup ELL PASS 41.16 seconds
Build - Prep PASS 0.10 seconds
Build - Configure PASS 7.20 seconds
Build - Make PASS 178.65 seconds
Make Check PASS 8.36 seconds
Make Distcheck PASS 210.16 seconds
Build w/ext ELL - Configure PASS 7.23 seconds
Build w/ext ELL - Make PASS 166.79 seconds
Details
##############################
Test: CheckPatch - PASS
Desc: Run checkpatch.pl script with rule in .checkpatch.conf
##############################
Test: GitLint - PASS
Desc: Run gitlint with rule in .gitlint
##############################
Test: Prep - Setup ELL - PASS
Desc: Clone, build, and install ELL
##############################
Test: Build - Prep - PASS
Desc: Prepare environment for build
##############################
Test: Build - Configure - PASS
Desc: Configure the BlueZ source tree
##############################
Test: Build - Make - PASS
Desc: Build the BlueZ source tree
##############################
Test: Make Check - PASS
Desc: Run 'make check'
##############################
Test: Make Distcheck - PASS
Desc: Run distcheck to check the distribution
##############################
Test: Build w/ext ELL - Configure - PASS
Desc: Configure BlueZ source with '--enable-external-ell' configuration
##############################
Test: Build w/ext ELL - Make - PASS
Desc: Build BlueZ source with '--enable-external-ell' configuration
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-18 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 18:31 [PATCH BlueZ] tools/mgmt-tester: Add Read OOB Ext Data test cases Brian Gix
2021-08-18 19:03 ` [BlueZ] " bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.