From fc0126b9918809213795a6414f44a194db963ec7 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Mon, 8 Feb 2021 09:43:11 +0100 Subject: [PATCH] pts/tests: rename define from __BTSTACK_FILE__ to BTSTACK_FILE__, and add it where it is missing --- test/pts/avdtp_sink_test.c | 5 +++++ test/pts/avdtp_source_test.c | 6 ++++++ test/pts/avrcp_test.c | 5 +++++ test/pts/ble_central_test.c | 10 +++++----- test/pts/ble_peripheral_test.c | 9 ++++----- test/pts/bnep_test.c | 4 +++- test/pts/btstack_stdin_pts.c | 2 +- test/pts/classic_test.c | 13 +++++++------ test/pts/csc_client_test.c | 2 +- test/pts/csc_server_test.c | 2 +- test/pts/cycling_power_server_test.c | 2 +- test/pts/gatt_profiles.c | 2 +- test/pts/hfp_test.c | 12 ++++++------ test/pts/hid_device_test.c | 27 +++++---------------------- test/pts/hid_host_test.c | 5 ++--- test/pts/hrp_col_test.c | 2 +- test/pts/hrp_server_test.c | 2 +- test/pts/hsp_ag_test.c | 10 +++++----- test/pts/hsp_hs_test.c | 10 +++++----- test/pts/iopt.c | 13 +++++++------ test/pts/l2cap_test.c | 13 +++++++------ test/pts/le_data_channel.c | 13 ++++++------- test/pts/sco_loopback.c | 12 ++++++------ 23 files changed, 91 insertions(+), 90 deletions(-) diff --git a/test/pts/avdtp_sink_test.c b/test/pts/avdtp_sink_test.c index c8ff9333f..5c1845768 100644 --- a/test/pts/avdtp_sink_test.c +++ b/test/pts/avdtp_sink_test.c @@ -35,6 +35,11 @@ * */ +#define BTSTACK_FILE__ "avdtp_sink_test.c" + +/* + * avdtp_sink_test.c : Tool for testig AVDTP sink with PTS, see avdtp_sink_test.md and a2dp_sink.md for PTS tests command sequences + */ #include #include diff --git a/test/pts/avdtp_source_test.c b/test/pts/avdtp_source_test.c index 45490dfb5..07c89be11 100644 --- a/test/pts/avdtp_source_test.c +++ b/test/pts/avdtp_source_test.c @@ -35,6 +35,12 @@ * */ +#define BTSTACK_FILE__ "avdtp_source_test.c" + +/* + * avdtp_source_test.c : Tool for testig AVDTP source with PTS, see avdtp_source_test.md and a2dp_source.md for PTS tests command sequences + */ + #include #include #include diff --git a/test/pts/avrcp_test.c b/test/pts/avrcp_test.c index 2779e6608..93b432b09 100644 --- a/test/pts/avrcp_test.c +++ b/test/pts/avrcp_test.c @@ -35,6 +35,11 @@ * */ +#define BTSTACK_FILE__ "avrcp_test.c" + +/* + * avrcp_test.c : Tool for testig AVRCP with PTS, see avrcp_test.md for PTS tests command sequences + */ #include #include diff --git a/test/pts/ble_central_test.c b/test/pts/ble_central_test.c index 4f72c1672..d240693e8 100644 --- a/test/pts/ble_central_test.c +++ b/test/pts/ble_central_test.c @@ -35,11 +35,11 @@ * */ -// ***************************************************************************** -// -// BLE Central PTS Test -// -// ***************************************************************************** +#define BTSTACK_FILE__ "ble_central_test.c" + +/* + * ble_central_test.c : Tool for testig BLE central + */ #include #include diff --git a/test/pts/ble_peripheral_test.c b/test/pts/ble_peripheral_test.c index ab392be5a..0925de7de 100644 --- a/test/pts/ble_peripheral_test.c +++ b/test/pts/ble_peripheral_test.c @@ -35,11 +35,11 @@ * */ -// ***************************************************************************** -/* EXAMPLE_START(ble_peripheral): BLE Peripheral Demo - * +#define BTSTACK_FILE__ "ble_peripheral_test.c" + +/* + * ble_peripheral_test.c : Tool for testig BLE peripheral */ -// ***************************************************************************** #include #include @@ -991,4 +991,3 @@ int btstack_main(int argc, const char * argv[]){ return 0; } -/* EXAMPLE_END */ diff --git a/test/pts/bnep_test.c b/test/pts/bnep_test.c index 10e22f385..cf2bdfdb7 100644 --- a/test/pts/bnep_test.c +++ b/test/pts/bnep_test.c @@ -35,8 +35,10 @@ * */ +#define BTSTACK_FILE__ "bnep_test.c" + /* - * bnep_test.c + * bnep_test.c : Tool for testig BNEP with PTS * based on panu_demo implemented by Ole Reinhardt */ diff --git a/test/pts/btstack_stdin_pts.c b/test/pts/btstack_stdin_pts.c index bb4ca1804..3872562b3 100644 --- a/test/pts/btstack_stdin_pts.c +++ b/test/pts/btstack_stdin_pts.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "btstack_stdin_pts.c" +#define BTSTACK_FILE__ "btstack_stdin_pts.c" #include #include diff --git a/test/pts/classic_test.c b/test/pts/classic_test.c index d772ccdaf..292e325e4 100644 --- a/test/pts/classic_test.c +++ b/test/pts/classic_test.c @@ -34,12 +34,13 @@ * contact@bluekitchen-gmbh.com * */ - -// ***************************************************************************** -// -// minimal setup for SDP client over USB or UART -// -// ***************************************************************************** + +#define BTSTACK_FILE__ "classic_test.c" + +/* + * classic_test.c : minimal setup for SDP client over USB or UART + */ + #include "btstack_config.h" diff --git a/test/pts/csc_client_test.c b/test/pts/csc_client_test.c index fa7ac9b1c..4aa3557ed 100644 --- a/test/pts/csc_client_test.c +++ b/test/pts/csc_client_test.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "csc_client_test.c" +#define BTSTACK_FILE__ "csc_client_test.c" #include #include diff --git a/test/pts/csc_server_test.c b/test/pts/csc_server_test.c index 49d11d8e3..7bb6bf0cf 100644 --- a/test/pts/csc_server_test.c +++ b/test/pts/csc_server_test.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "csc_server_test.c" +#define BTSTACK_FILE__ "csc_server_test.c" #include #include diff --git a/test/pts/cycling_power_server_test.c b/test/pts/cycling_power_server_test.c index c019b38c4..6710acdb2 100644 --- a/test/pts/cycling_power_server_test.c +++ b/test/pts/cycling_power_server_test.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "cycling_power_server_test.c" +#define BTSTACK_FILE__ "cycling_power_server_test.c" #include #include diff --git a/test/pts/gatt_profiles.c b/test/pts/gatt_profiles.c index 954d75d39..f5ba398f0 100644 --- a/test/pts/gatt_profiles.c +++ b/test/pts/gatt_profiles.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "gatt_profiles.c" +#define BTSTACK_FILE__ "gatt_profiles.c" // ***************************************************************************** /* EXAMPLE_START(le_counter): LE Peripheral - Heartbeat Counter over GATT diff --git a/test/pts/hfp_test.c b/test/pts/hfp_test.c index cffeab4e5..9cc5884ac 100644 --- a/test/pts/hfp_test.c +++ b/test/pts/hfp_test.c @@ -34,12 +34,12 @@ * contact@bluekitchen-gmbh.com * */ - -// ***************************************************************************** -// -// Minimal setup for HFP Audio Gateway -// -// ***************************************************************************** + +#define BTSTACK_FILE__ "hfp_test.c" + +/* + * hfp_test.c : Tool for testig HFP with PTS + */ #include "btstack_config.h" diff --git a/test/pts/hid_device_test.c b/test/pts/hid_device_test.c index 41123b314..59f523743 100644 --- a/test/pts/hid_device_test.c +++ b/test/pts/hid_device_test.c @@ -35,19 +35,11 @@ * */ -#define __BTSTACK_FILE__ "hid_keyboard_demo.c" - -// ***************************************************************************** -/* EXAMPLE_START(hid_keyboard_demo): HID Keyboard (Server) Demo - * - * @text This HID Device example demonstrates how to implement - * an HID keyboard. Without a HAVE_BTSTACK_STDIN, a fixed demo text is sent - * If HAVE_BTSTACK_STDIN is defined, you can type from the terminal - * - * @text Status: Basic implementation. HID Request from Host are not answered yet. Works with iOS. - */ -// ***************************************************************************** +#define BTSTACK_FILE__ "hid_device_test.c" +/* + * hid_device_test.c : Tool for testig HID device with PTS, see hid_device_test.md for PTS tests command sequences + */ #include #include @@ -505,14 +497,6 @@ static int hid_device_connection_filter(bd_addr_t addr){ return 1; } -/* @section Main Application Setup - * - * @text Listing MainConfiguration shows main application code. - * To run a HID Device service you need to initialize the SDP, and to create and register HID Device record with it. - * At the end the Bluetooth stack is started. - */ - -/* LISTING_START(MainConfiguration): Setup HID Device */ int btstack_main(int argc, const char * argv[]); int btstack_main(int argc, const char * argv[]){ @@ -573,5 +557,4 @@ int btstack_main(int argc, const char * argv[]){ hci_power_control(HCI_POWER_ON); return 0; } -/* LISTING_END */ -/* EXAMPLE_END */ + diff --git a/test/pts/hid_host_test.c b/test/pts/hid_host_test.c index b7131afc9..822206aa0 100644 --- a/test/pts/hid_host_test.c +++ b/test/pts/hid_host_test.c @@ -35,14 +35,13 @@ * */ -#define __BTSTACK_FILE__ "hid_host_test.c" +#define BTSTACK_FILE__ "hid_host_test.c" /* - * hid_host_test.c + * hid_host_test.c : Tool for testig HID host with PTS, see hid_host_test.md for PTS tests command sequences */ - #include #include diff --git a/test/pts/hrp_col_test.c b/test/pts/hrp_col_test.c index c106f4055..9676d952c 100644 --- a/test/pts/hrp_col_test.c +++ b/test/pts/hrp_col_test.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "gatt_heart_rate_client.c" +#define BTSTACK_FILE__ "gatt_heart_rate_client.c" // ***************************************************************************** /* EXAMPLE_START(gatt_heart_rate_client): Connects to Heart Rate Sensor and reports measurements */ diff --git a/test/pts/hrp_server_test.c b/test/pts/hrp_server_test.c index cf36753bb..d2a9a5b1f 100644 --- a/test/pts/hrp_server_test.c +++ b/test/pts/hrp_server_test.c @@ -35,7 +35,7 @@ * */ -#define __BTSTACK_FILE__ "le_counter.c" +#define BTSTACK_FILE__ "le_counter.c" // ***************************************************************************** /* EXAMPLE_START(le_counter): LE Peripheral - Heartbeat Counter over GATT diff --git a/test/pts/hsp_ag_test.c b/test/pts/hsp_ag_test.c index 92167a75a..3a40c7df2 100644 --- a/test/pts/hsp_ag_test.c +++ b/test/pts/hsp_ag_test.c @@ -35,11 +35,11 @@ * */ -// ***************************************************************************** -// -// HFP Audio Gateway PTS Test -// -// ***************************************************************************** +#define BTSTACK_FILE__ "hsp_ag_test.c" + +/* + * hsp_ag_test.c : Tool for testig HSP Audio Gateway with PTS + */ #include #include diff --git a/test/pts/hsp_hs_test.c b/test/pts/hsp_hs_test.c index aa6d6b32f..71ad60636 100644 --- a/test/pts/hsp_hs_test.c +++ b/test/pts/hsp_hs_test.c @@ -35,11 +35,11 @@ * */ -// ***************************************************************************** -// -// HSP Headset PTS Test -// -// ***************************************************************************** +#define BTSTACK_FILE__ "hsp_hs_test.c" + +/* + * hsp_hs_test.c : Tool for testig HSP Headset with PTS + */ #include "btstack_config.h" diff --git a/test/pts/iopt.c b/test/pts/iopt.c index 5c3c3cfd2..667c3e74c 100644 --- a/test/pts/iopt.c +++ b/test/pts/iopt.c @@ -34,12 +34,13 @@ * contact@bluekitchen-gmbh.com * */ - -// ***************************************************************************** -// -// IOP Test providing all implemented profiles at once -// -// ***************************************************************************** + +#define BTSTACK_FILE__ "iopt.c" + +/* + * iopt.c : IOP Test providing all implemented profiles at once + */ + #include #include diff --git a/test/pts/l2cap_test.c b/test/pts/l2cap_test.c index 53a549a4e..f053a62c3 100644 --- a/test/pts/l2cap_test.c +++ b/test/pts/l2cap_test.c @@ -34,12 +34,13 @@ * contact@bluekitchen-gmbh.com * */ - -// ***************************************************************************** -// -// minimal setup for SDP client over USB or UART -// -// ***************************************************************************** + +#define BTSTACK_FILE__ "l2cap_test.c" + +/* + * l2cap_test.c + */ + #include "btstack_config.h" diff --git a/test/pts/le_data_channel.c b/test/pts/le_data_channel.c index b53e38e34..3a029b21c 100644 --- a/test/pts/le_data_channel.c +++ b/test/pts/le_data_channel.c @@ -35,11 +35,12 @@ * */ -// ***************************************************************************** -/* EXAMPLE_START(ble_peripheral): LE Data Channel Test - * - */ -// ***************************************************************************** +#define BTSTACK_FILE__ "le_data_channel.c" + +/* + * le_data_channel.c + */ + #include #include @@ -418,5 +419,3 @@ int btstack_main(int argc, const char * argv[]){ return 0; } - -/* EXAMPLE_END */ diff --git a/test/pts/sco_loopback.c b/test/pts/sco_loopback.c index bb5906823..da0f6f225 100644 --- a/test/pts/sco_loopback.c +++ b/test/pts/sco_loopback.c @@ -34,12 +34,12 @@ * contact@bluekitchen-gmbh.com * */ - -// ***************************************************************************** -// -// Minimal test sending / receiving SCO packets -// -// ***************************************************************************** + +#define BTSTACK_FILE__ "sco_loopback.c" + +/* + * sco_loopback.c : Minimal test sending / receiving SCO packets + */ #include #include