pts/tests: rename define from __BTSTACK_FILE__ to BTSTACK_FILE__, and add it where it is missing

This commit is contained in:
Milanka Ringwald 2021-02-08 09:43:11 +01:00 committed by Matthias Ringwald
parent 4d5e2508b4
commit fc0126b991
23 changed files with 91 additions and 90 deletions

View File

@ -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 <stdint.h>
#include <stdio.h>

View File

@ -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 <stdint.h>
#include <stdio.h>
#include <string.h>

View File

@ -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 <stdint.h>
#include <inttypes.h>

View File

@ -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 <stdint.h>
#include <stdio.h>

View File

@ -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 <stdint.h>
#include <stdio.h>
@ -991,4 +991,3 @@ int btstack_main(int argc, const char * argv[]){
return 0;
}
/* EXAMPLE_END */

View File

@ -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 <ole.reinhardt@kernelconcepts.de>
*/

View File

@ -35,7 +35,7 @@
*
*/
#define __BTSTACK_FILE__ "btstack_stdin_pts.c"
#define BTSTACK_FILE__ "btstack_stdin_pts.c"
#include <errno.h>
#include <stdio.h>

View File

@ -35,11 +35,12 @@
*
*/
// *****************************************************************************
//
// 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"

View File

@ -35,7 +35,7 @@
*
*/
#define __BTSTACK_FILE__ "csc_client_test.c"
#define BTSTACK_FILE__ "csc_client_test.c"
#include <inttypes.h>
#include <stdint.h>

View File

@ -35,7 +35,7 @@
*
*/
#define __BTSTACK_FILE__ "csc_server_test.c"
#define BTSTACK_FILE__ "csc_server_test.c"
#include <stdint.h>
#include <stdio.h>

View File

@ -35,7 +35,7 @@
*
*/
#define __BTSTACK_FILE__ "cycling_power_server_test.c"
#define BTSTACK_FILE__ "cycling_power_server_test.c"
#include <stdint.h>
#include <stdio.h>

View File

@ -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

View File

@ -35,11 +35,11 @@
*
*/
// *****************************************************************************
//
// 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"

View File

@ -35,19 +35,11 @@
*
*/
#define __BTSTACK_FILE__ "hid_keyboard_demo.c"
#define BTSTACK_FILE__ "hid_device_test.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.
/*
* hid_device_test.c : Tool for testig HID device with PTS, see hid_device_test.md for PTS tests command sequences
*/
// *****************************************************************************
#include <stdint.h>
#include <stdio.h>
@ -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 */

View File

@ -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 <inttypes.h>
#include <stdio.h>

View File

@ -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 */

View File

@ -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

View File

@ -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 <errno.h>
#include <fcntl.h>

View File

@ -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"

View File

@ -35,11 +35,12 @@
*
*/
// *****************************************************************************
//
// IOP Test providing all implemented profiles at once
//
// *****************************************************************************
#define BTSTACK_FILE__ "iopt.c"
/*
* iopt.c : IOP Test providing all implemented profiles at once
*/
#include <stdint.h>
#include <stdio.h>

View File

@ -35,11 +35,12 @@
*
*/
// *****************************************************************************
//
// minimal setup for SDP client over USB or UART
//
// *****************************************************************************
#define BTSTACK_FILE__ "l2cap_test.c"
/*
* l2cap_test.c
*/
#include "btstack_config.h"

View File

@ -35,11 +35,12 @@
*
*/
// *****************************************************************************
/* EXAMPLE_START(ble_peripheral): LE Data Channel Test
*
#define BTSTACK_FILE__ "le_data_channel.c"
/*
* le_data_channel.c
*/
// *****************************************************************************
#include <stdint.h>
#include <stdio.h>
@ -418,5 +419,3 @@ int btstack_main(int argc, const char * argv[]){
return 0;
}
/* EXAMPLE_END */

View File

@ -35,11 +35,11 @@
*
*/
// *****************************************************************************
//
// Minimal test sending / receiving SCO packets
//
// *****************************************************************************
#define BTSTACK_FILE__ "sco_loopback.c"
/*
* sco_loopback.c : Minimal test sending / receiving SCO packets
*/
#include <stdint.h>
#include <stdio.h>