pts: update ignore file, Makefile, add test

This commit is contained in:
Milanka Ringwald 2018-09-18 10:29:48 +02:00
parent fe9125ce7d
commit b59045f9cb
5 changed files with 34 additions and 6 deletions

View File

@ -2,6 +2,10 @@ a2dp_sink_demo
a2dp_source_demo
ancs_client_demo
ancs_client_demo.h
att_delayed_read_response
att_delayed_read_response.h
att_delayed_response
att_delayed_response.h
avdtp_sink.sbc
avdtp_sink.wav
avdtp_sink_demo
@ -10,18 +14,26 @@ avrcp_browsing_client
ble_central_test
ble_peripheral_test
bnep_test
btstack_link_key_db_fs_a.c
btstack_link_key_db_fs_b.c
classic_test
csr_set_bd_addr
dut_mode_classic
gap_dedicated_bonding
gap_inquiry
gap_inquiry_and_bond
gap_le_advertisements
gap_link_keys
gatt_battery_query
gatt_battery_query.h
gatt_browser
gatt_browser.h
gatt_heart_rate_client
hci_transport_h2_libusb_a.c
hci_transport_h2_libusb_b.c
hfp_ag_demo
hfp_hf_demo
hfp_mitm
hid_host_demo
hid_keyboard_demo
hid_mouse_demo
@ -40,8 +52,11 @@ le_data_channel_server
le_data_channel_server.h
le_streamer
le_streamer.h
le_streamer_and_counter_client
le_streamer_and_counter_client.h
le_streamer_client
led_counter
mod_player
panu_demo
pbap_client_demo
profile.h
@ -61,5 +76,3 @@ spp_and_le_streamer.h
spp_counter
spp_streamer
spp_streamer_client
att_delayed_response
att_delayed_response.h

View File

@ -2,6 +2,8 @@ a2dp_sink_demo
a2dp_source_demo
ancs_client_demo
ancs_client_demo.h
att_delayed_read_response
att_delayed_read_response.h
BCM43430A1.hcd
ble_central_test
ble_peripheral
@ -21,10 +23,12 @@ gap_dedicated_bonding
gap_inquiry
gap_inquiry_and_bond
gap_le_advertisements
gap_link_keys
gatt_battery_query
gatt_battery_query.h
gatt_browser
gatt_browser.h
gatt_heart_rate_client
hfp_ag_demo
hfp_hf_demo
hid_host_demo
@ -46,6 +50,8 @@ le_data_channel_server
le_data_channel_server.h
le_streamer
le_streamer.h
le_streamer_and_counter_client
le_streamer_and_counter_client.h
le_streamer_client
led_counter
pbap_client_demo

2
test/pts/.gitignore vendored
View File

@ -15,6 +15,8 @@ gatt_profiles
gatt_profiles.h
hfp_ag_test
hfp_hf_test
hid_device_test
hog_demo_test
hrp_col_test
hrp_server_test
hrp_server_test.h

View File

@ -130,9 +130,16 @@ HXCMOD_PLAYER_OBJ = ${HXCMOD_PLAYER:.c=.o}
EXAMPLES = iopt ble_peripheral_test ble_central_test l2cap_test classic_test bnep_test hsp_ag_test hsp_hs_test sco_loopback le_data_channel
EXAMPLES += avdtp_source_test avdtp_sink_test le_data_channel avrcp_controller_test sm_test avrcp_target_test gatt_profiles hrp_col_test hrp_server_test
EXAMPLES += hog_demo_test hid_device_test
all: ${EXAMPLES}
hid_device_test: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_ring_buffer.o hid_device.o hid_device_test.o
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
hog_demo_test: hog_demo_test.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} battery_service_server.o device_information_service_server.o hids_device.o btstack_ring_buffer.o hog_demo_test.c
${CC} $(filter-out hog_demo_test.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
hrp_server_test.h: hrp_server_test.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
@ -203,6 +210,6 @@ gatt_profiles: gatt_profiles.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVE
${CC} $(filter-out gatt_profiles.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
myclean:
rm -rf *.pyc *.o $(AVDTP_TESTS) *.dSYM *_test *.wav *.sbc ${BTSTACK_ROOT}/port/libusb/*.o ${BTSTACK_ROOT}/src/*.o ${BTSTACK_ROOT}/src/classic/*.o ${BTSTACK_ROOT}/src/ble/*.o
rm -rf *.pyc *.o $(AVDTP_TESTS) *.dSYM *_test *.wav *.sbc ${BTSTACK_ROOT}/port/libusb/*.o ${BTSTACK_ROOT}/src/*.o ${BTSTACK_ROOT}/src/classic/*.o ${BTSTACK_ROOT}/src/ble/*.o hog_demo_test.h
clean: myclean

View File

@ -35,7 +35,7 @@
*
*/
#define __BTSTACK_FILE__ "hog_keyboard_demo.c"
#define __BTSTACK_FILE__ "hog_demo_test.c"
// *****************************************************************************
/* EXAMPLE_START(hog_keyboard_demo): HID-over-GATT Keyboard
@ -48,7 +48,7 @@
#include <string.h>
#include <inttypes.h>
#include "hog_keyboard_demo.h"
#include "hog_demo_test.h"
#include "btstack.h"