Commit Graph

504 Commits

Author SHA1 Message Date
Szymon Janc
3067e58bc4 test: Update test-oob to match new D-Bus OOB API 2012-08-14 12:24:36 +03:00
Claudio Takahasi
d53e0272e9 serial: Remove serial proxy test script 2012-07-24 15:37:45 +02:00
Claudio Takahasi
9f1d36c8d5 serial: Remove serial test script 2012-07-24 15:37:43 +02:00
Gustavo Padovan
91b9c50aa4 Remove documentation about Node API
Node API was never implemented.
2012-07-19 10:42:20 +03:00
Gustavo Padovan
d09ecfaeff headset: remove deprecated D-Bus methods 2012-07-05 11:14:38 +03:00
Gustavo Padovan
8af25d0b1d manager: remove deprecated ListAdapters() method 2012-07-04 15:43:09 +03:00
Gustavo Padovan
5a4951dae6 adapter: remove deprecated ListDevices() method 2012-07-04 15:43:06 +03:00
Frédéric Dalleau
a17ad52653 test-audio: Add --interface option 2012-07-04 15:36:57 +03:00
Szymon Janc
b0c6296b6f test: Pass remote address and port number to test-sap-server
This allows to pass remote SAP server address and optional port number.
Also exit script error if not able to connect SAP client to server.
2012-07-02 14:17:39 +03:00
Szymon Janc
8d4c083435 test: Fix test-sap-server import issue
sap-client is a helper library and needs to be suffixed with .py for
test-sap-server to be able to import it.

$ ./test-sap-server
Traceback (most recent call last):
  File "./test-sap-server", line 3, in <module>
    from sap import *
2012-07-02 14:13:43 +03:00
Luiz Augusto von Dentz
f2bdd7243e audio: Remove internal audio IPC
With unix socket and ALSA removed there is no longer any use for the
internal IPC.
2012-07-02 13:13:46 +03:00
Johan Hedberg
5c9af79845 simple-agent: Fix input with python version < 3.0
input() in python < 3.0 is the same as eval(raw_input()) which is not
what we want. With python >= 3.0 in turn raw_input doesn't exist. This
patch fixes support for both versions by a simple try-except clause.
2012-06-18 14:09:57 +03:00
Steve Langasek
ee56337e41 Update tests to be compatible with gi and python3
This patch makes the python tests source-compatible with python 3, while
leaving the interpreter at python 2 for now.

The tradeoff is that this source is no longer compatible with python
versions < 2.6, and requires gobject-introspection for the glib-based
tests.
2012-06-15 12:32:50 +03:00
Johan Hedberg
ebb2896b3a Remove test/apitest
This script is back from BlueZ 3.x times and unusable now
2012-06-15 12:32:44 +03:00
Johan Hedberg
6c5efac684 simple-agent: Use a higher (60s) timeout for pairing 2012-06-05 06:58:11 +03:00
Johan Hedberg
982ee6499b hciemu: Fix gcc 4.7 compilation error
This patch fixes the following compilation error with gcc 4.7:

  CC     test/hciemu.o
test/hciemu.c: In function 'getbdaddrbyname':
test/hciemu.c:1115:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
2012-05-17 20:44:58 +03:00
Andre Guedes
1e84241cc8 l2test: Add option to inform the address type
This patch adds 'V' option to inform the address type. Possible values
are: "bredr", "le_public", and "le_random".
2012-04-25 13:04:53 +03:00
Scott James Remnant
7216b7e967 simple-agent: add DisplayPinCode 2012-04-12 14:10:53 +03:00
Johan Hedberg
d5c860b4f4 test-discovery: Fix printing non-ASCII characters 2012-03-12 14:05:10 +02:00
Luiz Augusto von Dentz
49e3fa4157 btiotest: Add option to update security level while connecting 2012-03-02 15:59:49 -08:00
Marcel Holtmann
a3877b43ee hciemu: Fix wrong error code in host control 2012-02-27 09:19:14 -08:00
Andrei Emeltchenko
eedaa19cfc l2test: Add BT Channel Policy option
Make l2test able to set channel policy socket option.
2012-02-26 19:09:03 +02:00
Andrei Emeltchenko
95f4d9d53b l2test: Clean up lookup table code
Make lookup table code available for others and create
common functions.
2012-02-26 19:07:28 +02:00
Marcel Holtmann
8257ef71a0 hciemu: Reset all settings on reset 2012-02-22 16:58:59 +01:00
Marcel Holtmann
37d806a392 hciemu: Add clean handling for page scan and inquiry scan enable 2012-02-21 20:30:31 +01:00
Marcel Holtmann
65c785cf06 hciemu: Add support for LE buffer size command 2012-02-21 15:26:44 +01:00
Marcel Holtmann
1202dd2c9e hciemu: Handle unknown HCI commands properly 2012-02-21 15:21:37 +01:00
Marcel Holtmann
e31e02e667 hciemu: Add support for handling host supported features 2012-02-21 15:11:11 +01:00
Marcel Holtmann
cf808a866a hciemu: Add support for setting LE host mode 2012-02-21 15:04:12 +01:00
Marcel Holtmann
def5cd8ad3 hciemu: Add support for setting simple pairing mode 2012-02-21 14:51:00 +01:00
Marcel Holtmann
9899b5bce6 hciemu: Create a Bluetooth SIG 4.0 controller 2012-02-21 14:42:28 +01:00
Anderson Lizardo
dfa888e54f thermometer: Fix handling of missing Temperature Type
According to HTS 1.0 (Table 3.1, and Sections 3.1.1.4 and 3.2), the
Temperature Type Characteristic is optional. The only restriction is
that it shall not be present if the Temperature Type is non-static, for
which case the "Temperature Type" field shall be present on the
Temperature Measurement Characteristic value.

Given there is no default value specified when the Temperature Type is
static and unknown, the "Type" entry for MeasurementReceived() on the
Thermometer API was made optional.
2012-02-16 15:11:50 +02:00
Johan Hedberg
9291fc60cb test-discovery: Make output a bit more readable
Add an empty line between device found entries to make the output more
readable.
2012-02-15 13:17:01 +02:00
Anderson Lizardo
9ce812b085 proximity: Fix Proximity API to match documentation
Recently, the documented D-Bus interface for Proximity was changed to
prepare for the upcoming Proximity Reporter API.
2012-02-09 15:10:18 +02:00
Johan Hedberg
1716c9fd48 simple-agent: Ensure passkeys are padded to 6 digits 2012-02-02 19:14:41 +02:00
Johan Hedberg
4bf44d29ff simple-agent: Update default capability to KeyboardDisplay
Now that both user space and kernel mgmt code supports this new
capability it makes sense to set it as the default for simple-agent.
2012-02-02 19:11:38 +02:00
Vinicius Costa Gomes
efeb4cdb12 test: Add support for btiotest to returning the key size 2012-01-24 16:19:24 +02:00
Vinicius Costa Gomes
3ad251fe23 test: Add support for passing the CID to btiotest
If we want to test LE connections using btiotest we need to be
able to inform btio the Channel ID that we want to connect to, so
the kernel is able to learn that we want to establish a LE connection.
2012-01-24 16:19:21 +02:00
Szymon Janc
a951f50ad7 l2test: Add option 'K' to set delay before receiving 2012-01-09 14:55:07 +02:00
Szymon Janc
eed7ec0561 l2test: Add option 'H' to set socket receive buffer size
Size is set using SO_RCVBUF, see man 7 socket for more details.
2012-01-09 14:53:52 +02:00
Anderson Lizardo
d9062e72d0 hciemu: Fix strict-aliasing rules handling
gcc 4.4.3 (from Ubuntu 10.04) started complaining about this code:

test/hciemu.c: In function ‘hci_host_control’:
test/hciemu.c:431: error: dereferencing pointer ‘({anonymous})’ does break
strict-aliasing rules
test/hciemu.c:431: note: initialized from here

The fix is based on commit 97046eaf3f.
2011-12-30 13:08:45 +02:00
Syam Sidhardhan
b8f8ed5c61 mpris-player: Fix D-Bus reply memory leaks 2011-12-08 12:44:56 +02:00
Syam Sidhardhan
8a06194b08 agent: Fix D-Bus reply memory leaks 2011-12-08 12:44:46 +02:00
Andrei Emeltchenko
f54e13dd83 hciemu: Process Read Local AMP Info
Add processing of Read Local AMP Info in hciemu, the values returned are
used to emulate AMP HCI.
2011-12-08 11:39:29 +02:00
Anderson Lizardo
d69b678a3b hciemu: Fix build error
Error:

test/hciemu.c: In function 'create_snoop':
test/hciemu.c:155: error: 'S_IRUSR' undeclared (first use in this
function)
test/hciemu.c:155: error: (Each undeclared identifier is reported only
once
test/hciemu.c:155: error: for each function it appears in.)
test/hciemu.c:155: error: 'S_IWUSR' undeclared (first use in this
function)
test/hciemu.c:155: error: 'S_IRGRP' undeclared (first use in this
function)
test/hciemu.c:155: error: 'S_IROTH' undeclared (first use in this
function)
2011-12-02 20:42:56 +02:00
Marcel Holtmann
b9ab5a45ff hciemu: Just use local port numbers only 2011-11-30 18:35:57 +01:00
Marcel Holtmann
bc3feb5e77 hciemu: Use epoll() instead of GLib mainloop 2011-11-30 17:51:13 +01:00
Marcel Holtmann
1392f728c8 hciemu: Remove support for running a proxy 2011-11-30 17:01:02 +01:00
Santiago Carot-Nemesio
2776a390de Add thermometer python test script 2011-11-22 14:29:22 +02:00
Anderson Lizardo
5bd311398e Fix return value check for bt_audio_service_open()
Only negative values (namely -1) are errors for this function.
2011-11-17 13:57:53 +02:00
Anderson Lizardo
5c6db9e861 audio/IPC: Fix errno handling convention
Variables which are assigned to the errno variable (usually called
"err") should be negative, and "-err" should be used where a positive
value is needed.

This commit also changes places where errno can be replaced with -err
(for consistency) and one perror() usage error.
2011-11-17 13:57:52 +02:00
Luiz Augusto von Dentz
c1f8969f83 rctest: fix not setting priority of accepted socket
SO_PRIORITY is not inherited upon accept so it has to be set manually in
the new socket.
2011-11-16 15:28:23 +02:00
Luiz Augusto von Dentz
62173e1850 l2test: fix not setting priority of accepted socket
SO_PRIORITY is not inherited upon accept so it has to be set manually in
the new socket.
2011-11-16 15:28:15 +02:00
Vinicius Costa Gomes
97bbdeee7f Fix simple-player test script to make it work with dbus-python-0.84 2011-11-14 12:56:28 +02:00
Luiz Augusto von Dentz
ca431639a8 btiotest: Add option to set socket priority
Setting a priority outside the range 0 to 6 requires the CAP_NET_ADMIN
capability.
2011-11-04 15:41:56 +02:00
Luiz Augusto von Dentz
b96496bb09 rctest: Add option 'Y' to set socket priority
Priority is set using SO_PRIORITY, see man 7 socket for more details.
2011-11-04 15:40:38 +02:00
Luiz Augusto von Dentz
53bc28a20f l2test: Add option 'Y' to set socket priority
Priority is set using SO_PRIORITY, see man 7 socket for more details.
2011-11-04 15:39:46 +02:00
Luiz Augusto von Dentz
4f89d2634b Add support for MediaPlayer.Release to simple-player 2011-10-28 15:15:53 +03:00
Luiz Augusto von Dentz
af0659ba5f Add support for MediaPlayer.Release to mpris-player 2011-10-28 15:15:50 +03:00
Lucas De Marchi
1723fe2fb3 Fix handling of dbus signals
We're previously leaking a D-Bus message and always returning that
the signal was not handled.
2011-10-22 12:18:14 +02:00
Lucas De Marchi
9aa246958b Fix leak of dbus message 2011-10-20 10:34:31 +03:00
Lucas De Marchi
3ab3eab5b9 Improve test/simple-player to allow user interaction
Allow user to trigger TrackChanged and PropertyChanged. Calls made by
remote side (coming from D-Bus) are printed to stderr while the ones to
interact with user go to stdout.
2011-10-13 13:11:10 +03:00
Luiz Augusto von Dentz
291e838c93 Add mpris-player to test
It gather information from players implementing mpris spec and convert
to org.bluez.MediaPlayer spec.
2011-10-10 12:26:07 +03:00
Luiz Augusto von Dentz
53cc56358c Remove test-media-player 2011-10-06 11:13:43 +03:00
Luiz Augusto von Dentz
6e215f1f86 Add simple-player test script 2011-10-06 11:13:33 +03:00
Luiz Augusto von Dentz
5600f99bd9 Print Vendor/Product/Version in hexadecimal
This is how their are more commonly known.
2011-10-01 09:02:05 +03:00
Claudio Takahasi
fa63522766 Fix test-proximity usage info 2011-09-24 13:12:10 +03:00
Bruno Dilly
a48d5487c7 Add test for serial proxy and serial proxy manager 2011-09-13 10:42:39 +03:00
Vinicius Costa Gomes
319f66f7c8 Add support for listing all adapters using test-adapter 2011-08-22 13:13:23 +03:00
Lucas De Marchi
655656dbd0 Add script to test MediaPlayer interface 2011-08-12 11:05:14 +03:00
Sheldon Demario
7223e60a54 Test script for LinkLossAlertLevel property
Initial test script for Proximity Monitor. This patch allows the
user to set the Link Loss alert level of a given Reporter.
Usage example:
$test-proximity -i hci1 --device <mac> LinkLossAlertLevel mild
2011-08-03 16:06:49 +03:00
Andrei Emeltchenko
8a617a8df5 l2test: enhance L2CAP mode option 2011-07-26 11:01:00 +03:00
Andrei Emeltchenko
3a94d5d09c l2test: Make use of L2CAP extended feature mask definitions 2011-07-26 11:00:57 +03:00
Lucas De Marchi
fcb426c76a Fix common misspelled words
Accounting of misspelled words, as detected by codespell:

acording      2
ancilliary    1
appropiate    1
atribute      1
cant          1
comming       2
gracefull     1
lenght        1
mispelled     1
occured       1
occurences    1
ocurred       3
prefered      1
presense      1
reponse       1
seperate      1
succesful     1
successully   1
sucessfull    1
sucessfully   1
2011-07-03 14:36:14 +03:00
Steven Luo
9edfc88f77 test/agent.c: Wait for reply from CreatePairedDevice before exiting
This matches the behavior of the Python sample agent, and is needed to
get my Bluetooth keyboard to pair.
2011-06-28 10:42:23 +03:00
Dmitriy Paliy
aacd845305 Add capability option to simple-agent
A new option is added to simple-agent facilitating use of "DisplayOnly",
"DisplayYesNo", "KeyboardOnly" and "NoInputNoOutput" agent capabilities.
2011-06-15 15:44:38 +03:00
Szymon Janc
8af5f43a69 Fix empty parameter list in functions declarations 2011-05-18 09:05:55 -07:00
Johan Hedberg
2076574365 Fix unused variable warnings reported by GCC 4.6 2011-05-15 01:57:12 +03:00
Bruna Moreira
cef8838500 Use HCI_MAX_EIR_LENGTH instead of hard-coded value 2011-04-27 16:25:02 -07:00
Szymon Janc
f6a34aa79b Add test/test-oob for testing Out Of Band pairing
This test utilizes D-Bus Out Of Band API so bluetoothd must be
compiled with dbusoob plugin.
2011-04-14 20:02:29 +03:00
Waldemar Rymarkiewicz
0bf67b1fd2 Clean and fix copyright header in test/sap-client
ST-Ericsson is the copyright holder of test/sap-client.
2011-03-28 17:26:24 +03:00
Waldemar Rymarkiewicz
883ef406d6 Sim Access Profile test scripts
Add simple SAP client python implementation and a test script.

To run test-sap-server you need Python 2.6 or newer (tested with 2.6 only)
and PyBluez package installed.
2011-03-25 11:13:08 +02:00
Elvis Pfützenreuter
69f57a7d56 Add "unit test" for new UUID functions 2011-03-15 19:37:40 +02:00
Vinicius Costa Gomes
020ef16431 Update the test-attrib test script
Now it is more similar to the other test-* scripts. And allows to
exercise more of the API.
2011-03-15 10:53:12 +02:00
Elvis Pfützenreuter
bb096e674c Add more functions for new UUID handling
This patch adds more functions that are necessary to handle the new
bt_uuid_t type, and moves basic things like byte-swapping functions and
uint128_t type to bluetooth.h.
2011-03-15 10:42:50 +02:00
Szymon Janc
0989e74c56 Fix small memleak in hciemu 2011-03-04 15:56:41 -03:00
Anderson Lizardo
22d7418014 Fix test/test-attrib script
Characteristics are not being fetched anymore when the device is
created. Discover method needs to be called actively to discover the
characteristics exposed by a given service.
2011-02-24 18:59:04 -03:00
David Herrmann
5408e11b6b Replace batostr() with ba2str() to avoid memleaks
batostr() returns dynamically allocated strings. Replace it with
ba2str() wherever possible to avoid heap allocations and fix memleaks.
2011-02-18 12:01:12 -03:00
Gustavo F. Padovan
cd09d807d3 Use a valid PSM value in l2test 2011-02-09 14:03:57 -08:00
Luiz Augusto von Dentz
d0a3daef0c Fix use of deprecated glib on tests 2011-01-19 14:10:05 +02:00
Vinicius Costa Gomes
8250668371 Add a "services" command to test-device
This command adds a way to retrieve the Services property that each
device has.
2010-12-23 10:32:42 +02:00
Johan Hedberg
dd109a698c Add disconnect command to test-device 2010-12-21 11:23:30 +02:00
Claudio Takahasi
818c950b8f Convert CreateDevice on test-device script to an asynchronous call
Change required to test the scenario when the sender of a CreateDevice
request disconnects from the system bus. Current implementation is
blocking and it doesn't allow the user to cancel a request.
2010-12-09 22:08:43 +02:00
Jose Antonio Santos Cadenas
111d412316 Modify test-health script to make it more interactive 2010-10-21 09:44:02 +02:00
Jose Antonio Santos Cadenas
529b73edef Update test script and create a new one 2010-10-06 10:37:08 +02:00
Anderson Lizardo
eaa9992d70 Add test/test-attrib for testing Attribute API 2010-10-04 17:06:49 +02:00
Gustavo F. Padovan
c5eab04d65 l2test: add support to the fixed channels 2010-09-30 17:25:40 -03:00
Santiago Carot-Nemesio
ea3e77c8a0 Add simple test for health plugin 2010-09-17 16:35:04 +02:00
Luiz Augusto von Dentz
7bc7ee26c1 Add simple-endpoint test script 2010-09-15 15:05:44 +03:00
Luiz Augusto von Dentz
1a1c9456fd Make simple-agent to ask user to authorize mode changes 2010-09-02 13:44:05 +03:00
Bartlomiej Grzeskowiak
735eead7a3 Remove call to non-existing Adapter method call
Use Service.AddRecord() instead of Adapter.AddRecord().
2010-09-01 13:32:14 +03:00
Luiz Augusto von Dentz
0739b005c4 Fix using wrong argument in test-serial 2010-08-16 14:20:27 +03:00
Marcel Holtmann
73dfbe9fbd Add test script for testing NAP network server 2010-07-13 00:13:03 -03:00
Vinicius Costa Gomes
349823ebfa Fix the output of the list command of test-device
The list command of test-device was giving just Devices object paths,
not very useful, not it shows the device address and its Alias.
2010-07-02 13:22:07 -03:00
Johan Hedberg
a90f0dfe8c Add support for multiple adapters to the test scripts
This patch adds support for specifying which adapter to use through
"-i hciX" (just like hcitool, etc).
2010-06-13 14:24:41 +03:00
Gustavo F. Padovan
a554d3a656 Fix redundant null check on calling free()
Issues found by smatch static check: http://smatch.sourceforge.net/
2010-06-08 15:57:25 +08:00
Johan Hedberg
f326668811 Add missing help text for test-device blocked command 2010-06-08 09:52:11 +08:00
Johan Hedberg
1e4d4fe0ed Add new "Blocked" property to device objects
This patch adds a new "Blocked" property to device objects. It maps
directly to the HCIBLOCKDEV and HCIUNBLOCKDEV ioctl's which enable
control of incoming connection acceptance on the kernel side.
2010-05-17 17:32:26 +02:00
Jose Antonio Santos Cadenas
6968c52091 Remove extra spaces in test dir 2010-05-07 01:47:59 +03:00
Gustavo F. Padovan
5261de27f3 Set l2cap mode always
As ERTM can be the default mode with SOCK_STREAM we have to set
opts.mode always.
2010-04-28 18:47:35 +03:00
Gustavo F. Padovan
449367e8da Add options to test MaxTx and TxWindow 2010-04-28 18:47:35 +03:00
Gustavo F. Padovan
a43d90eeb9 Add duplex test case to l2test
Use a SOCK_NONBLOCK to send and receive at the same time.
2010-04-28 18:47:35 +03:00
Gustavo F. Padovan
c5c6abdf4c l2test: add option to use SOCK_STREAM 2010-04-28 18:47:35 +03:00
Francisco Alecrim
9266dfeac2 Report local services(UUIDs) through D-Bus
* Include UUIDs field to method GetProperties(org.bluez.Adapter).
Applications can get local services(UUIDs) available through D-Bus.
* UUIDs per-adapter stored at btd_adapter to prevent some searches not
necessary regarding it requires information from access_db and service_db.
* Emit Adapter.PropertyChanged signal when UUIDs change.
2010-04-07 20:31:03 +03:00
Marcel Holtmann
dc99234eb6 Fix some missed copyrights 2010-01-07 01:13:49 -08:00
Johan Hedberg
5592142cb9 Update Nokia copyrights 2010-01-07 01:11:05 -08:00
Marcel Holtmann
9184e2eeb7 Update copyright information 2010-01-01 17:08:17 -08:00
Johan Hedberg
0ea975c85c Add test scripts for input and audio 2009-11-19 14:27:53 +02:00
Johan Hedberg
86a8cb5037 Add support for waiting before exiting to avtest 2009-09-04 00:48:54 +03:00
Johan Hedberg
8be335ca8f Add more complete AVCTP support to avtest 2009-09-03 22:20:48 +03:00
Johan Hedberg
788ffa0775 Add initial AVCTP support to avtest 2009-09-03 21:46:18 +03:00
Johan Hedberg
45091c9a9a Update help output for avtest 2009-09-03 21:01:17 +03:00
Johan Hedberg
0223594362 Add ABORT support to avtest 2009-09-03 18:23:44 +03:00
Johan Hedberg
5b968a14e1 Fix do_send to wait for a proper reply
The remote side might be simultaneously sending commands to us which we
should just ignore.
2009-09-03 16:22:02 +03:00
Johan Hedberg
0ed3510c9d Add Nokia copyright to avtest.c 2009-09-03 11:49:11 +03:00
Johan Hedberg
793be3b7b1 Allow avtest to use 48 byte MTU also in SEND mode
This should be helpful for AVDTP tests where the IUT (bluetoothd) is
supposed to send a fragmented message to us.
2009-09-02 22:19:51 +03:00
Johan Hedberg
5a1ad09af8 Add fragmented message sending support to avtest 2009-09-02 20:04:44 +03:00
Johan Hedberg
dd65e5a614 Fix closing media transport after receiving CLOSE 2009-09-02 19:31:08 +03:00
Johan Hedberg
8d839631b3 Add avtest support for responding to AVDTP_SUSPEND 2009-09-02 19:30:02 +03:00
Johan Hedberg
93b269a185 Add avtest support for responding to AVDTP_CLOSE 2009-09-02 19:26:07 +03:00
Johan Hedberg
9ec30f5ec3 Add avtest support for responding to AVDTP_START 2009-09-02 19:23:24 +03:00
Johan Hedberg
9f226395d0 Add avtest support for responding to AVDTP_OPEN 2009-09-02 19:18:28 +03:00
Johan Hedberg
d3eb02475c Add avtest support for responding to AVDTP_GET_CONFIGURATION 2009-09-02 19:03:37 +03:00
Johan Hedberg
386278a53f Add avtest support for responding to AVDTP_SET_CONFIGURATION 2009-09-02 18:59:04 +03:00
Johan Hedberg
f69f155719 Add "Invalid media transport" support to avtest 2009-09-02 18:39:53 +03:00
Johan Hedberg
146188ce10 Add avtest support for arbitrary commands
This is useful e.g. invalid signal identifier AVDTP tests.
2009-09-02 17:44:40 +03:00
Johan Hedberg
58f8fe54f0 Add SUSPEND support to avtest 2009-09-02 17:30:08 +03:00
Johan Hedberg
c158582914 Add CLOSE support to avtest 2009-09-02 17:20:31 +03:00
Johan Hedberg
beae593a00 Fix off-by-one strcmp issue 2009-09-02 17:10:01 +03:00
Johan Hedberg
567a563831 Add START support to avtest 2009-09-02 17:09:19 +03:00
Johan Hedberg
f6ab8a08d4 Fix creating media transport if OPEN failed 2009-09-02 17:02:46 +03:00
Johan Hedberg
f92a37b64b Add basic avtest OPEN support 2009-09-02 16:53:40 +03:00
Johan Hedberg
274c59d023 Move valid media transport data to a common place 2009-09-02 16:17:02 +03:00
Johan Hedberg
9e31466745 Add avtest support for setconf requirement before actual command 2009-09-02 16:07:39 +03:00
Johan Hedberg
b23423c119 Add avtest support for GET_CONFIGURATION 2009-09-02 15:55:34 +03:00
Johan Hedberg
f9df9aa548 Add avtest support for SET_CONFIGURATION 2009-09-02 15:43:19 +03:00
Johan Hedberg
1ab5c6b32b Add avtest support for sending GET_CAPABILITIES 2009-09-02 15:32:51 +03:00
Johan Hedberg
fed7381071 Add avtest support for sending corrupted DISCOVER command 2009-09-02 15:17:08 +03:00
Johan Hedberg
00a727e43b Initial avtest support for sending commands 2009-09-02 15:07:01 +03:00
Marcel Holtmann
f391f70a50 Add utility for basic AVDTP testing 2009-08-31 12:01:56 -07:00
Marcel Holtmann
11e2f9bf39 Rename some options to make them more intuitive 2009-08-30 11:10:41 -07:00
Gustavo F. Padovan
33874cd970 Add support for setting L2CAP FCS value 2009-08-30 11:03:13 -07:00
Marcel Holtmann
34fc04776e Rename textfile test program 2009-08-28 22:42:42 -07:00
Marcel Holtmann
e6f2f3bbdb Move IPC test program to test directory 2009-08-28 22:38:35 -07:00
Marcel Holtmann
ccaed46859 Move common files into src directory 2009-08-28 22:24:04 -07:00
Marcel Holtmann
a5b1e3d02c Switch to a full non-recursive build system 2009-08-23 00:40:59 -07:00
Marcel Holtmann
c1d1d624ef Add some extra debug output to GAP testing 2009-08-20 12:16:17 -07:00
Marcel Holtmann
7fefa9ead2 Add again the missing newlines 2009-08-20 12:05:26 -07:00
Marcel Holtmann
4796617108 Implement support for device removal in GAP helper 2009-08-20 11:59:57 -07:00
Marcel Holtmann
609aa6f17c Add option to delay agent responses 2009-08-20 11:31:27 -07:00
Marcel Holtmann
e97a2d4f5a Add missing newline 2009-08-20 10:33:21 -07:00
Marcel Holtmann
b5a3d58c40 Add simple test program for basic GAP testing 2009-08-20 10:27:29 -07:00
Marcel Holtmann
97b0450732 Add support for confirmation requests to agent example 2009-08-20 10:26:46 -07:00
Vinicius Costa Gomes
a2d3bb25da Fix calling CreatePairedDevice from agent.c
Before calling CreatePairedDevice we must have registered the agent's
object path, or bluetoothd will fail to find its methods.
2009-08-19 09:49:07 +03:00
Luiz Augusto von Dentz
d7544f6a07 Fix possible array out of bounds. 2009-07-21 17:11:13 -03:00
Luiz Augusto von Dentz
218672a1b1 Fix unintended fall through. 2009-07-16 09:23:47 -03:00
Marcel Holtmann
97046eaf3f Fix strict-aliasing rules handling for hciemu and IP addresses 2009-07-16 07:25:30 +02:00
Marcel Holtmann
6432bf4db3 Fix strict-aliasing rules handling of l2test and info requests 2009-07-16 07:23:38 +02:00
Johan Hedberg
6429c3188c Fix error passing to bt_io_get 2009-07-10 19:16:52 +03:00
Filippo Giunchedi
8e1cfdea73 include test/hciemu.1 into man_MANS and EXTRA_DIST 2009-07-06 10:35:14 -07:00
Filippo Giunchedi
c89b94c450 add test/hciemu.1 manpage 2009-07-06 10:35:06 -07:00
Filippo Giunchedi
f25217722e test/hciemu.c: verbose usage message 2009-07-06 10:34:54 -07:00
Filippo Giunchedi
e5fbc3089e include test/rctest.1 into man_MANS and EXTRA_DIST 2009-07-06 10:34:33 -07:00
Filippo Giunchedi
f965b2b9fc add test/rctest.1 manpage 2009-07-06 10:34:19 -07:00
Stefan Seyfried
aef8437f73 Fix build with "--as-needed"
This patch got submitted by an openSUSE contributor, I'm passing it
along so that I have one less patch to carry in my package ;)
2009-07-04 09:11:40 -07:00
Filippo Giunchedi
aec8360e71 test/agent.c: rename "target device" into device 2009-07-02 17:22:02 +03:00
Filippo Giunchedi
7b050e571e test/agent.c: find given adapter or use default
modify get_adapter_path to use FindAdapter or use DefaultAdapter if none
is given
2009-07-02 17:22:00 +03:00
Filippo Giunchedi
950ab387b2 test/agent.c: rename device into adapter in functions 2009-07-02 17:21:57 +03:00
Filippo Giunchedi
112f88d310 test/agent.c: rename option device into adapter 2009-07-02 17:21:55 +03:00
Filippo Giunchedi
6db7a480cd test/agent.c: rename device into adapter in main 2009-07-02 17:21:53 +03:00
Johan Hedberg
0b0bbd589c Fix coding style 2009-06-30 19:55:35 +03:00
Filippo Giunchedi
e3c5fd9319 test/agent.c: pairing via CreatePairedDevice
introduce optional argument target for remote address, if passed pairing
will be called
2009-06-30 19:44:15 +03:00
Filippo Giunchedi
012c146949 test/agent.c: update dbus API usage
This patch implements and updates some parts of dbus API missing from
test/agent.c, namely Authorize, RequestPinCode and RequestPasskey.
2009-06-30 19:44:12 +03:00
Filippo Giunchedi
db656f3430 test/agent.c: get_device select default device
mimick simple-agent, i.e. search for default device
2009-06-30 19:44:06 +03:00
Filippo Giunchedi
f4804a8f52 remove trailing whitespaces in manpages 2009-06-30 16:27:55 +03:00
Luiz Augusto von Dentz
41b28f6b10 Add to simple-agent the ability to reject authorization requests. 2009-06-16 23:52:15 +03:00
Zygo Blaxell
3b02334c35 Add test-network to dist 2009-06-04 23:19:59 +03:00
Marcel Holtmann
6f220b305b Make sure to initialize the feature mask variable 2009-05-04 02:42:55 -07:00
Marcel Holtmann
493b4ab0bf Add alias for setting ERTM mode value 2009-05-02 23:03:57 -07:00
Marcel Holtmann
49d0b05136 Retreive fixed channels list if supported 2009-04-19 22:38:36 +02:00
Marcel Holtmann
9fca3da026 Add additional L2CAP extended feature mask bits 2009-04-19 22:28:53 +02:00
Gustavo F. Padovan
3fb63ab3bf Add Enhanced Retransmission mode, Streaming mode and FCS Option. 2009-04-19 22:22:49 +02:00
Luiz Augusto von Dentz
d2a69ecba1 Fix btiotest to allocate a channel when not specified. 2009-04-01 11:59:49 -03:00
Marcel Holtmann
4296b2cda5 Make sure to clear socket address structure first 2009-03-30 15:39:36 -07:00
Marcel Holtmann
041076b043 Add skeleton for avtest application 2009-02-27 08:20:53 +01:00
Johan Hedberg
1c195ab280 Fix strncpy length parameters to avoid non-nul-terminated strings 2009-02-25 17:48:40 +02:00
Marcel Holtmann
72c04224f1 Add UUID search option for RFCOMM channel 2009-02-22 08:15:13 +01:00
Johan Hedberg
3d57921729 Add support for getting connection info 2009-02-20 00:21:18 +02:00
Luiz Augusto von Dentz
10d6858927 Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close. 2009-02-19 16:23:10 -03:00
Johan Hedberg
24df1ac442 Add support for BT_IO_OPT_MASTER to btiotest 2009-02-18 18:00:18 +02:00