Luiz Augusto von Dentz
fb339bde64
rfcomm-tester: Fix crash on test-basic
...
This fixes to following trace caused by not initializing data->io:
AddressSanitizer:DEADLYSIGNAL
=================================================================
ERROR: AddressSanitizer: SEGV on unknown address
(pc 0x7f199c3a01c9 bp 0x7ffc26624a10 sp 0x7ffc26624a00 T0)
The signal is caused by a READ memory access.
Hint: this fault was caused by a dereference of a high value address
(see register values below). Disassemble the provided pc to learn .
#0 0x7f199c3a01c9 in g_io_channel_unref (/lib64/libglib-2.0.so.0+0x4d1c9)
#1 0x5565f82fcece in test_post_teardown tools/rfcomm-tester.c:205
#2 0x5565f83939b3 in teardown_callback src/shared/tester.c:434
2024-02-15 09:44:15 -05:00
Luiz Augusto von Dentz
b632ec3f32
rfcomm-tester: Add test to close socket while connecting
...
This adds Basic RFCOMM Socket Client - Close test which attempt to close
socket while connecting.
2022-09-13 16:32:38 -07:00
Luiz Augusto von Dentz
3d3b1ceab9
rfcomm-tester: Use latest Bluetooth version
...
This makes rfcomm-tester use the latest Bluetooth supported by the
emulator which is useful the detect regression related to ACL data
transfer.
2022-09-02 13:54:05 -07:00
Luiz Augusto von Dentz
6c9c4b7c3a
rfcomm-tester: Increase amount of data from 8k to 32k
...
This forces the behavior where not all data can be written at once so it
is able to reproduce the from [1].
[1]https://bugzilla.kernel.org/show_bug.cgi?id=215594
2022-02-14 17:47:13 -08:00
Luiz Augusto von Dentz
ec5209afea
rfcomm-tester: Add test to write big chunks of data
...
This attempts to test traffic similar to OBEX using big chunk of data.
2022-02-09 15:43:05 -08:00
Archie Pusaka
43f547d7e5
tools: Inclusive language changes
...
BT core spec 5.3 promotes the usage of inclusive languages.
This CL replaces some terms with the more appropriate counterparts,
such as "central", "peripheral", "accept list", "reject list", and
"temporary link key". Note that some suggestions come from
https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2021-09-21 10:51:54 +02:00
Archie Pusaka
048f2ac0e4
emulator: Inclusive language changes
...
BT core spec 5.3 promotes the usage of inclusive languages.
This CL replaces some terms with the more appropriate counterparts,
such as "central", "peripheral", and "accept list".
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2021-09-21 10:51:54 +02:00
Luiz Augusto von Dentz
ebe702a3d3
tools/rfcomm-tester: Enable hciemu debug
...
This enable hciemu debug when debug is enabled.
2020-11-02 11:10:54 -08:00
Tedd Ho-Jeong An
0a259dd05b
tools: Add SPDX License Identifier
...
This patch adds SPDX License Identifier and removes the license text.
-------------------------------------
License COUNT
-------------------------------------
GPL-2.0-or-later : 97
LGPL-2.1-or-later : 38
GPL-2.0-only : 2
License: GPL-2.0-or-later
tools/l2cap-tester.c
tools/hcisecfilter.c
tools/ciptool.c
tools/btsnoop.c
tools/check-selftest.c
tools/btpclientctl.c
tools/hci-tester.c
tools/hcitool.c
tools/btiotest.c
tools/oobtest.c
tools/btinfo.c
tools/hwdb.c
tools/hciattach_bcm43xx.c
tools/mgmt-tester.c
tools/hex2hcd.c
tools/hciattach_st.c
tools/smp-tester.c
tools/bluetooth-player.c
tools/hciattach_tialt.c
tools/gap-tester.c
tools/bluemoon.c
tools/bneptest.c
tools/gatt-service.c
tools/rctest.c
tools/rfcomm-tester.c
tools/hcieventmask.c
tools/hciattach_ti.c
tools/seq2bseq.c
tools/scotest.c
tools/bcmfw.c
tools/hciconfig.c
tools/btattach.c
tools/l2ping.c
tools/obexctl.c
tools/l2test.c
tools/hciattach_intel.c
tools/hciattach.h
tools/create-image.c
tools/bnep-tester.c
tools/userchan-tester.c
tools/rfcomm.c
tools/btmon-logger.c
tools/hcidump.c
tools/rtlfw.c
tools/hciattach_qualcomm.c
tools/btproxy.c
tools/nokfw.c
tools/hciattach_ath3k.c
tools/3dsp.c
tools/bdaddr.c
tools/sco-tester.c
tools/hciattach.c
tools/amptest.c
tools/btgatt-server.c
tools/btgatt-client.c
tools/cltest.c
tools/ibeacon.c
tools/mcaptest.c
tools/hid2hci.c
tools/btmgmt.c
tools/advtest.c
tools/eddystone.c
tools/avtest.c
tools/mpris-proxy.c
tools/avinfo.c
tools/sdptool.c
tools/btconfig.c
tools/update_compids.sh
tools/parser/parser.h
tools/parser/obex.c
tools/parser/amp.c
tools/parser/sdp.c
tools/parser/tcpip.c
tools/parser/sap.c
tools/parser/cmtp.c
tools/parser/avctp.c
tools/parser/lmp.c
tools/parser/ppp.c
tools/parser/rfcomm.h
tools/parser/hci.c
tools/parser/sdp.h
tools/parser/parser.c
tools/parser/rfcomm.c
tools/parser/avdtp.c
tools/parser/avrcp.c
tools/parser/ericsson.c
tools/parser/hcrp.c
tools/parser/bpa.c
tools/parser/hidp.c
tools/parser/bnep.c
tools/parser/capi.c
tools/parser/att.c
tools/parser/l2cap.c
tools/parser/smp.c
tools/parser/csr.c
tools/parser/l2cap.h
tools/parse_companies.pl
License: LGPL-2.1-or-later
tools/test-runner.c
tools/btpclient.c
tools/meshctl.c
tools/mesh-cfgclient.c
tools/mesh/model.h
tools/mesh/util.h
tools/mesh/config-model.h
tools/mesh/cfgcli.h
tools/mesh/mesh-db.c
tools/mesh/mesh-db.h
tools/mesh/keys.c
tools/mesh/util.c
tools/mesh/agent.h
tools/mesh/remote.c
tools/mesh/keys.h
tools/mesh/agent.c
tools/mesh/cfgcli.c
tools/mesh/remote.h
tools/mesh-gatt/prov.c
tools/mesh-gatt/util.h
tools/mesh-gatt/prov.h
tools/mesh-gatt/net.c
tools/mesh-gatt/util.c
tools/mesh-gatt/prov-db.h
tools/mesh-gatt/crypto.c
tools/mesh-gatt/crypto.h
tools/mesh-gatt/gatt.c
tools/mesh-gatt/config-server.c
tools/mesh-gatt/keys.h
tools/mesh-gatt/onoff-model.c
tools/mesh-gatt/net.h
tools/mesh-gatt/gatt.h
tools/mesh-gatt/node.c
tools/mesh-gatt/config-client.c
tools/mesh-gatt/mesh-net.h
tools/mesh-gatt/node.h
tools/mesh-gatt/onoff-model.h
tools/mesh-gatt/prov-db.c
License: GPL-2.0-only
tools/obex-server-tool.c
tools/obex-client-tool.c
2020-09-29 14:37:23 -07:00
Archie Pusaka
0c7e7a95df
tools/l2cap-tester: Add test for waiting disconnection response
...
This is to test the behaviour of L2CAP channel when closed with
shut_down(sock, SHUT_WR). In this case, we should wait until we
receive a disconnection response before raising G_IO_HUP.
2020-06-04 14:17:27 -07:00
Marcel Holtmann
6be2f08c9c
tools: Include headers with lib/ prefix instead of bluetooth/ prefix
2015-04-04 13:50:35 -07:00
Johan Hedberg
74aa69af7d
tools/rfcomm-tester: Shorted unnecessarily long variable names
2015-02-27 12:59:52 +02:00
Johan Hedberg
13b1c94c64
tools/rfcomm-tester: Add better logs
2015-02-27 12:59:52 +02:00
Marcel Holtmann
508e129d75
build: Move hciemu.c and hciemu.h into emulator directory
2014-09-25 14:39:10 +02:00
Johan Hedberg
4ead1cb1ec
emulator/bthost: Rename rfcomm_channel to rfcomm_chan for shorter symbol names
2014-02-19 15:09:34 +02:00
Johan Hedberg
06c9a19137
tools/rfcomm-tester: Minor coding style fix
2014-02-19 15:05:32 +02:00
Marcin Kraglak
ed0e8af120
tools/rfcomm-tester: Add RFCOMM server read test case
...
It will test reading data passed to RFCOMM socket on server side.
2014-02-19 15:03:59 +02:00
Marcin Kraglak
d6b69ed7df
tools/rfcomm-tester: Add RFCOMM client read test case
...
This will test reading data passed to RFCOMM socket on client side.
2014-02-19 15:03:41 +02:00
Marcin Kraglak
bc0c9928cf
tools/rfcomm-tester: Add RFCOMM server write test case
...
This will check data write from server to client.
2014-02-19 15:02:38 +02:00
Marcin Kraglak
3b9b76da54
tools/rfcomm-tester: Add RFCOMM client write test case
...
This will test sending data through RFCOMM socket from client to server.
2014-02-19 15:02:25 +02:00
Johan Hedberg
472cc0a910
tools/rfcomm-tester: Clean up coding style
2014-01-16 12:23:16 +02:00
Johan Hedberg
dda90d0739
tools/rfcomm-tester: Don't enable SSP (as it's not necessary)
2014-01-16 12:23:15 +02:00
Johan Hedberg
809b0c2462
tools/rfcomm-tester: Only BR/EDR is relevant for RFCOMM
2014-01-16 12:23:15 +02:00
Johan Hedberg
33dcb461da
tools/rfcomm-tester: Update callback to match new API
2014-01-16 12:23:15 +02:00
Marcin Kraglak
5574590647
tools/rfcomm-tester: Add RFCOMM server negative test case
...
This test case create RFCOMM server and reject incoming connection
from bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
b0fee95e07
tools/rfcomm-tester: Add RFCOMM server test case
...
This test case create RFCOMM server and accept incoming connection from
client bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
96283b9a5b
tools/rfcomm-tester: Add Connection refused client test case
...
This will test RFCOMM client connection to wrong server channel.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
292cd05057
tools/rfcomm-tester: Implement client test case
...
This will test RFCOMM client connection.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
9b36ebbd23
tools/rfcomm-tester: Add basic rfcomm test case
...
This test case verifies creating rfcomm socket.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
11bd593fd7
tools/rfcomm-tester: Initial version of rfcomm-tester
...
Add rfcomm-tester to tree.
2014-01-16 12:23:15 +02:00