int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_smp("SMP Server - Basic Request 1", &smp_server_basic_req_1_test, setup_powered_server, test_server); test_smp("SMP Server - Invalid Request 1", &smp_server_nval_req_1_test, setup_powered_server, test_server); test_smp("SMP Server - Invalid Request 2", &smp_server_nval_req_2_test, setup_powered_server, test_server); test_smp("SMP Server - Invalid Request 3", &smp_server_nval_req_3_test, setup_powered_server, test_server); test_smp("SMP Client - Basic Request 1", &smp_client_basic_req_1_test, setup_powered_client, test_client); test_smp("SMP Client - Basic Request 2", &smp_client_basic_req_2_test, setup_powered_client, test_client); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_sco("Basic Framework - Success", NULL, setup_powered, test_framework); test_sco("Basic SCO Socket - Success", NULL, setup_powered, test_socket); test_sco("Basic SCO Get Socket Option - Success", NULL, setup_powered, test_getsockopt); test_sco("Basic SCO Set Socket Option - Success", NULL, setup_powered, test_setsockopt); test_sco("eSCO CVSD - Success", &connect_success, setup_powered, test_connect); test_sco("eSCO MSBC - Success", &connect_success, setup_powered, test_connect_transp); test_sco_11("SCO CVSD 1.1 - Success", &connect_success, setup_powered, test_connect); test_sco_11("SCO MSBC 1.1 - Failure", &connect_failure, setup_powered, test_connect_transp); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_rfcomm("Basic RFCOMM Socket - Success", NULL, setup_powered_client, test_basic); test_rfcomm("Basic RFCOMM Socket Client - Success", &connect_success, setup_powered_client, test_connect); test_rfcomm("Basic RFCOMM Socket Client - Write Success", &connect_send_success, setup_powered_client, test_connect); test_rfcomm("Basic RFCOMM Socket Client - Read Success", &connect_read_success, setup_powered_client, test_connect); test_rfcomm("Basic RFCOMM Socket Client - Conn Refused", &connect_nval, setup_powered_client, test_connect); test_rfcomm("Basic RFCOMM Socket Server - Success", &listen_success, setup_powered_server, test_server); test_rfcomm("Basic RFCOMM Socket Server - Write Success", &listen_send_success, setup_powered_server, test_server); test_rfcomm("Basic RFCOMM Socket Server - Read Success", &listen_read_success, setup_powered_server, test_server); test_rfcomm("Basic RFCOMM Socket Server - Conn Refused", &listen_nval, setup_powered_server, test_server); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); tester_add("/textfile/pagesize", NULL, NULL, test_pagesize, NULL); tester_add("/textfile/delete", NULL, NULL, test_delete, NULL); tester_add("/textfile/overwrite", NULL, NULL, test_overwrite, NULL); tester_add("/textfile/multiple", NULL, NULL, test_multiple, NULL); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_user("User channel open - Success", NULL, NULL, test_open_success); test_user("User channel open - Failed", NULL, setup_powered, test_open_failed); test_user("User channel open - Power Toggle Success", INT_TO_PTR(true), toggle_powered, test_open_success); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_hci_local("Reset", NULL, NULL, test_reset); test_hci_local("Read Local Version Information", NULL, NULL, test_read_local_version_information); test_hci_local("Read Local Supported Commands", NULL, NULL, test_read_local_supported_commands); test_hci_local("Read Local Supported Features", NULL, NULL, test_read_local_supported_features); test_hci_local("Read Local Extended Features", NULL, setup_features, test_read_local_extended_features); test_hci_local("Read Buffer Size", NULL, NULL, test_read_buffer_size); test_hci_local("Read Country Code", NULL, NULL, test_read_country_code); test_hci_local("Read BD_ADDR", NULL, NULL, test_read_bd_addr); test_hci_local("Read Local Supported Codecs", NULL, NULL, test_read_local_supported_codecs); test_hci_local("LE Read White List Size", NULL, NULL, test_le_read_white_list_size); test_hci_local("LE Clear White List", NULL, NULL, test_le_clear_white_list); test_hci_local("LE Encrypt", NULL, NULL, test_le_encrypt); test_hci_local("LE Rand", NULL, NULL, test_le_rand); test_hci_local("LE Read Local PK", &key_test_data, NULL, test_le_read_local_pk); test_hci_local("LE Generate DHKey", &key_test_data, setup_le_generate_dhkey, test_le_generate_dhkey); test_hci_local("Inquiry (LIAC)", NULL, NULL, test_inquiry_liac); test_hci("Create Connection", NULL, setup_lt_connectable, test_create_connection, teardown_connection); test_hci("TP/DSU/BV-02-C Reset in Advertising State", NULL, setup_advertising_initiated, test_reset_in_advertising_state, NULL); return tester_run(); }
void half_duplex_client_sends(int nbytes) { chitcp_tester_client_run_set(tester, sender, &nbytes); chitcp_tester_server_run_set(tester, receiver, &nbytes); tester_connect(); chitcp_tester_client_wait_for_state(tester, ESTABLISHED); chitcp_tester_server_wait_for_state(tester, ESTABLISHED); tester_run(); tester_done(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_l2cap_bredr("Basic L2CAP Socket - Success", NULL, setup_powered_client, test_basic); test_l2cap_bredr("L2CAP BR/EDR Client - Success", &client_connect_success_test, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client - Invalid PSM", &client_connect_nval_psm_test, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Server - Success", &l2cap_server_success_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid PSM", &l2cap_server_nval_psm_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid PDU", &l2cap_server_nval_pdu_test1, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid Disconnect CID", &l2cap_server_nval_cid_test1, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid Config CID", &l2cap_server_nval_cid_test2, setup_powered_server, test_server); test_l2cap_le("L2CAP LE Client - Success", &le_client_connect_success_test, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Client - Invalid PSM", &le_client_connect_nval_psm_test, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Server - Success", &le_server_success_test, setup_powered_server, test_server); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); define_test("/TP/HGRF/RH/BV-01-I", test_hog, raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12, 0x18, 0x05, 0x00, 0x08, 0x00, 0x12, 0x18), raw_pdu(0x10, 0x09, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a), raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x03, 0x00, 0x02, 0x04, 0x00, 0x4b, 0x2a), raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a), raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x07, 0x00, 0x02, 0x08, 0x00, 0x4b, 0x2a), raw_pdu(0x0a, 0x04, 0x00), raw_pdu(0x0b, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16), raw_pdu(0x0a, 0x08, 0x00), raw_pdu(0x0b, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16), raw_pdu(0x0c, 0x04, 0x00, 0x16, 0x00), raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16), raw_pdu(0x0c, 0x08, 0x00, 0x16, 0x00), raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16), raw_pdu(0x0c, 0x04, 0x00, 0x2c, 0x00), raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13), raw_pdu(0x0c, 0x08, 0x00, 0x2c, 0x00), raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13)); define_test("/TP/HGRF/RH/BV-08-I", test_hog, raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12, 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18), raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a), raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x03, 0x00, 0x0a, 0x04, 0x00, 0x4d, 0x2a), raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a), raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x08, 0x00, 0x0a, 0x09, 0x00, 0x4d, 0x2a), raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a), raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a), raw_pdu(0x0a, 0x04, 0x00), raw_pdu(0x0b, 0xee, 0xee, 0xff, 0xff), raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00), raw_pdu(0x05, 0x01, 0x05, 0x00, 0x08, 0x29), raw_pdu(0x0a, 0x09, 0x00), raw_pdu(0x0b, 0xff, 0xff, 0xee, 0xee), raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00), raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x08, 0x29), raw_pdu(0x0a, 0x05, 0x00), raw_pdu(0x0b, 0x01, 0x03), raw_pdu(0x0a, 0x0a, 0x00), raw_pdu(0x0b, 0x02, 0x03)); define_test("/TP/HGRF/RH/BV-09-I", test_hog, raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12, 0x18, 0x05, 0x00, 0x08, 0x00, 0x12, 0x18), raw_pdu(0x10, 0x09, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a), raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x03, 0x00, 0x02, 0x04, 0x00, 0x4a, 0x2a), raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a), raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x07, 0x00, 0x02, 0x08, 0x00, 0x4a, 0x2a), raw_pdu(0x0a, 0x04, 0x00), raw_pdu(0x0b, 0x01, 0x11, 0x00, 0x01), raw_pdu(0x0a, 0x08, 0x00), raw_pdu(0x0b, 0x01, 0x11, 0x00, 0x01)); define_test("/TP/HGRF/RH/BV-06-I", test_hog, raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12, 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18), raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a), raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x03, 0x00, 0x0a, 0x04, 0x00, 0x4d, 0x2a), raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a), raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x08, 0x00, 0x0a, 0x09, 0x00, 0x4d, 0x2a), raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a), raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a), raw_pdu(0x0a, 0x04, 0x00), raw_pdu(0x0b, 0xee, 0xee, 0xff, 0xff), raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00), raw_pdu(0x05, 0x01, 0x05, 0x00, 0x08, 0x29), raw_pdu(0x0a, 0x09, 0x00), raw_pdu(0x0b, 0xff, 0xff, 0xee, 0xee), raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00), raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x08, 0x29), raw_pdu(0x0a, 0x05, 0x00), raw_pdu(0x0b, 0x01, 0x02), raw_pdu(0x0a, 0x0a, 0x00), raw_pdu(0x0b, 0x02, 0x02)); define_test("/TP/HGCF/RH/BV-01-I", test_hog, raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x11, 0x06, 0x01, 0x00, 0x06, 0x00, 0x12, 0x18, 0x07, 0x00, 0x0c, 0x00, 0x12, 0x18), raw_pdu(0x10, 0x0d, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x01, 0x10, 0x0d, 0x00, 0x0a), raw_pdu(0x08, 0x01, 0x00, 0x06, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x03, 0x00, 0x1a, 0x04, 0x00, 0x4d, 0x2a), raw_pdu(0x08, 0x01, 0x00, 0x06, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), raw_pdu(0x08, 0x07, 0x00, 0x0c, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x07, 0x00, 0x0a), raw_pdu(0x08, 0x07, 0x00, 0x0c, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x09, 0x00, 0x1a, 0x0a, 0x00, 0x4d, 0x2a), raw_pdu(0x08, 0x04, 0x00, 0x06, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a), raw_pdu(0x08, 0x0a, 0x00, 0x0c, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x0a, 0x00, 0x0a), raw_pdu(0x0a, 0x04, 0x00), raw_pdu(0x0b, 0xed, 0x00), raw_pdu(0x04, 0x05, 0x00, 0x06, 0x00), raw_pdu(0x05, 0x01, 0x05, 0x00, 0x02, 0x29, 0x06, 0x00, 0x08, 0x29), raw_pdu(0x0a, 0x0a, 0x00), raw_pdu(0x0b, 0xed, 0x00), raw_pdu(0x04, 0x0b, 0x00, 0x0c, 0x00), raw_pdu(0x05, 0x01, 0x0b, 0x00, 0x02, 0x29, 0x0c, 0x00, 0x08, 0x29), raw_pdu(0x0a, 0x06, 0x00), raw_pdu(0x0b, 0x01, 0x01), raw_pdu(0x0a, 0x0c, 0x00), raw_pdu(0x0b, 0x02, 0x01), raw_pdu(0x0a, 0x05, 0x00), raw_pdu(0x0b, 0x00, 0x00), raw_pdu(0x0a, 0x0b, 0x00), raw_pdu(0x0b, 0x00, 0x00), raw_pdu(0x12, 0x05, 0x00, 0x01, 0x00), raw_pdu(0x13), raw_pdu(0x12, 0x0b, 0x00, 0x01, 0x00), raw_pdu(0x13)); define_test("/TP/HGRF/RH/BV-02-I", test_hog, raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12, 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18), raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28), raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a), raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x03, 0x00, 0x02, 0x04, 0x00, 0x4b, 0x2a), raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28), raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a), raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28), raw_pdu(0x09, 0x07, 0x08, 0x00, 0x02, 0x09, 0x00, 0x4b, 0x2a), raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a), raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28), raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a), raw_pdu(0x0a, 0x04, 0x00), raw_pdu(0x0b, 0x01, 0x02, 0x03), raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00), raw_pdu(0x05, 0x01, 0x05, 0x00, 0x07, 0x29), raw_pdu(0x0a, 0x09, 0x00), raw_pdu(0x0b, 0x01, 0x02, 0x03), raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00), raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x07, 0x29), raw_pdu(0x0a, 0x05, 0x00), raw_pdu(0x0b, 0x19, 0x2a), raw_pdu(0x0a, 0x0a, 0x00), raw_pdu(0x0b, 0x19, 0x2a)); return tester_run(); }
int main(int argc, char *argv[]) { tester_init(&argc, &argv); test_l2cap_bredr("Basic L2CAP Socket - Success", NULL, setup_powered_client, test_basic); test_l2cap_bredr("Non-connected getpeername - Failure", NULL, setup_powered_client, test_getpeername_not_connected); test_l2cap_bredr("L2CAP BR/EDR Client - Success", &client_connect_success_test, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client SSP - Success 1", &client_connect_ssp_success_test_1, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client SSP - Success 2", &client_connect_ssp_success_test_2, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client PIN Code - Success", &client_connect_pin_success_test, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client - Read Success", &client_connect_read_success_test, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client - Write Success", &client_connect_write_success_test, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client - Invalid PSM 1", &client_connect_nval_psm_test_1, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client - Invalid PSM 2", &client_connect_nval_psm_test_2, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Client - Invalid PSM 3", &client_connect_nval_psm_test_3, setup_powered_client, test_connect); test_l2cap_bredr("L2CAP BR/EDR Server - Success", &l2cap_server_success_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Read Success", &l2cap_server_read_success_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Write Success", &l2cap_server_write_success_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Security Block", &l2cap_server_sec_block_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid PSM", &l2cap_server_nval_psm_test, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid PDU", &l2cap_server_nval_pdu_test1, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid Disconnect CID", &l2cap_server_nval_cid_test1, setup_powered_server, test_server); test_l2cap_bredr("L2CAP BR/EDR Server - Invalid Config CID", &l2cap_server_nval_cid_test2, setup_powered_server, test_server); test_l2cap_le("L2CAP LE Client - Success", &le_client_connect_success_test_1, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Client SMP - Success", &le_client_connect_success_test_2, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Client - Command Reject", &le_client_connect_reject_test_1, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Client - Invalid PSM", &le_client_connect_nval_psm_test, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE Server - Success", &le_server_success_test, setup_powered_server, test_server); test_l2cap_le("L2CAP LE ATT Client - Success", &le_att_client_connect_success_test_1, setup_powered_client, test_connect); test_l2cap_le("L2CAP LE ATT Server - Success", &le_att_server_success_test_1, setup_powered_server, test_server); return tester_run(); }