Commit Graph

522 Commits

Author SHA1 Message Date
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
Johan Hedberg
eb3529e7fb Print MTU also for SCO 2009-02-18 17:10:54 +02:00
Johan Hedberg
84c6d2d9a2 Make use of GError to get detailed error information 2009-02-18 14:26:36 +02:00
Johan Hedberg
2fe6b618d8 Add security level support to btiotest 2009-02-18 11:48:15 +02:00
Johan Hedberg
dd36706b9f Add support for SCO to btiotest 2009-02-18 11:41:16 +02:00
Johan Hedberg
d1f188d4b3 Convert BtIO API to use GError 2009-02-16 19:48:54 +02:00
Johan Hedberg
1dbc2990d6 Merge btio test tool 2009-02-16 09:15:34 +02:00
Marcel Holtmann
9c0b5859e6 Fix mostly every warning caused by -Wsign-compare 2009-01-29 17:58:28 +01:00
Marcel Holtmann
41e30382f9 Differentiate between buffer and data size 2009-01-15 10:44:52 +01:00
Marcel Holtmann
f213783e7d Add support for fragmentation of data packets 2009-01-15 08:06:34 +01:00
Marcel Holtmann
9e7fdeca25 Add support for deferred connection setup 2009-01-14 14:39:45 +01:00
Marcel Holtmann
7b5212174a Allow choosing of MITM for new pairing function 2009-01-13 17:55:54 +01:00
Marcel Holtmann
22fdd67493 Add command option for triggering dedicated bonding 2009-01-13 11:17:17 +01:00
Marcel Holtmann
fb333f1c88 Update copyright information 2009-01-01 19:33:20 +01:00
Marcel Holtmann
76950fff1b Remove unneeded inline statements 2008-12-23 04:31:40 +01:00
Marcel Holtmann
c1c058b689 Add more signal handling to monitor script 2008-12-20 10:35:50 +01:00
Marcel Holtmann
567d649420 Add script to monitor PropertyChanged signals 2008-12-16 03:06:48 +01:00
Johan Hedberg
901a2c3041 Add speakergain, microphonegain, play and stop to test-telephony 2008-12-02 13:28:41 +02:00
Marcel Holtmann
48fc33be59 Remove old 3.x API cruft 2008-11-30 20:01:45 +01:00
Marcel Holtmann
26e5560e92 Replace old manager object path 2008-11-30 20:00:15 +01:00
Johan Hedberg
8e7a46183e Add support for Powered property to test-adapter 2008-11-29 16:09:21 +02:00
Luiz Augusto von Dentz
73247a7182 Update test-adapter. 2008-11-28 16:07:59 -03:00
Luiz Augusto von Dentz
fea35c375a Add support for PairableTimeout property on adapter-test. 2008-11-27 16:47:16 -03:00
Luiz Augusto von Dentz
0b6b1da0dd Add discovering option to test-adapter. 2008-11-24 16:27:51 -03:00
Luiz Augusto von Dentz
20f5afea0c Remove deprecated PeriodicDiscovery property from test-adapter. 2008-11-24 16:22:38 -03:00
Ville Tervo
529726b566 Change "device" in information print into "node" 2008-11-24 09:59:01 +02:00
Marcel Holtmann
f85760b455 Add support for discoverable option 2008-11-21 11:37:12 +01:00
Marcel Holtmann
c6786d2581 Add support for pairable option 2008-11-21 11:34:28 +01:00
Marcel Holtmann
330092231a Add new service test script and fix adapter script 2008-11-01 01:25:46 +01:00
Marcel Holtmann
3cb84c32b8 Re-arrange the order in EXTRA_DIST 2008-10-05 10:59:30 +02:00
Johan Hedberg
9a17271b17 Add test-telephony to EXTRA_DIST 2008-10-04 23:34:56 +02:00
Mika Linnanoja
363567a7d2 Add support for connecting/disconnecting headsets. 2008-10-04 14:44:32 +02:00
Johan Hedberg
ffcd40c827 Add test script for dummy telephony plugin 2008-10-04 13:00:00 +02:00
Marcel Holtmann
2ab16c09f4 Add example agent implementation in C 2008-10-03 09:21:47 +02:00
Marcel Holtmann
5a498c0ce6 Remove old passkey-agent and auth-agent 2008-10-03 09:11:22 +02:00
Marcel Holtmann
8be9168ec2 List device and node objects 2008-09-28 06:00:57 +02:00
Luiz Augusto von Dentz
f7637f674b Update test-discovery. 2008-09-09 18:10:54 -03:00
Luiz Augusto von Dentz
618258d5f4 Add test-network. 2008-09-09 18:02:27 -03:00
Marcel Holtmann
862ac7734f Fix distribution includes 2008-09-06 04:55:11 +02:00
Marcel Holtmann
6e5682847b Fix the simple service example 2008-09-06 04:23:46 +02:00
Marcel Holtmann
028ea961e3 Fix org.bluez.Serial interface 2008-09-06 01:33:29 +02:00
Marcel Holtmann
cf92b6dc9c Move test scripts into test directory 2008-09-01 22:34:04 +02:00
Marcel Holtmann
93f86d24cc Make sure to actually set the link mode option 2008-07-11 03:00:37 +00:00
Marcel Holtmann
06e4d41372 Allow link mode settings for outgoing connections 2008-07-10 09:38:39 +00:00
Marcel Holtmann
81ef88706f Quick hack to allow reject of PIN code requests 2008-07-10 01:16:28 +00:00
Marcel Holtmann
2199bc76c6 Enable output of timestamps 2008-06-25 07:13:46 +00:00
Marcel Holtmann
9e19855216 Use the correct socket descriptor for incoming connections 2008-06-23 18:54:15 +00:00
Marcel Holtmann
5b67585821 Add timestamp option 2008-06-23 18:45:52 +00:00
Marcel Holtmann
30ea633a54 Remove invalid line in usage output 2008-06-23 18:21:10 +00:00
Marcel Holtmann
8e34afe9cc Allow setting of RFC mode 2008-06-15 14:09:07 +00:00
Marcel Holtmann
5ac0d04df1 Remove the confirm method from the sample passkey agent 2008-06-03 15:31:41 +00:00
Marcel Holtmann
e0a54a416a Move passkey-agent and auth-agent sample code to test directory 2008-06-03 12:44:58 +00:00
Marcel Holtmann
5a14261153 Allow event listening and commands at the same time 2008-03-07 14:07:54 +00:00
Marcel Holtmann
e823c15e43 Update copyright information 2008-02-02 03:37:05 +00:00
Claudio Takahasi
7d8dc82e02 apitest: fixed signal handler 2007-06-23 13:56:20 +00:00
Marcel Holtmann
3e4bc988db Comment out @dbus.decorators.explicitly_pass_message statement 2007-06-22 22:31:54 +00:00
Marcel Holtmann
11d24685fb Set output MTU for listening sockets 2007-05-23 11:50:49 +00:00
Marcel Holtmann
232610dea7 Use generic service connect function 2007-04-05 20:10:01 +00:00
Marcel Holtmann
f89882a84a Update test setup 2007-04-03 20:48:42 +00:00
Marcel Holtmann
03ebdf91be Add a connect only mode 2007-01-23 17:12:12 +00:00
Marcel Holtmann
b4ccc4c8de Check socket address to get the dynamic PSM and channel values 2007-01-21 23:56:48 +00:00
Marcel Holtmann
1c36a2a322 Add function for connection the transfer manager 2007-01-21 01:51:04 +00:00
Marcel Holtmann
8cc5595d90 Make it possible to support an embedded GLib 2007-01-20 05:26:15 +00:00
Marcel Holtmann
f24e25355d Update pre-created objects 2007-01-19 15:53:19 +00:00
Marcel Holtmann
2666321aed Adapt to the service interface changes 2007-01-16 11:18:21 +00:00
Marcel Holtmann
8f94be819d Add LMP test utility 2007-01-15 20:05:22 +00:00
Marcel Holtmann
331c95a5f3 Works also with a Philips chip 2007-01-14 22:43:52 +00:00
Marcel Holtmann
607695ed10 Update copyright information 2007-01-13 17:48:12 +00:00
Marcel Holtmann
0d68e70bb8 Allow compilation against GLib 2007-01-12 00:49:27 +00:00
Johan Hedberg
6033ee0c99 Add disconnection delay and RemoteDeviceDisconnectRequested signal for the DisconnectRemoteDevice method 2007-01-03 12:14:01 +00:00
Johan Hedberg
326cf15e58 Support for ListRemoteDevices and ListRecentRemoteDevices 2006-11-10 17:20:25 +00:00
Marcel Holtmann
b467488a2e Add service objects 2006-10-29 16:50:26 +00:00
Johan Hedberg
8f0584a204 Allow listening for events even when a command is sent 2006-10-19 12:48:59 +00:00
Marcel Holtmann
d78dcb8b79 Add experimental objects 2006-09-29 19:11:48 +00:00
Marcel Holtmann
b31cef173e Add simple D-Bus preload script for Python 2006-09-29 18:45:25 +00:00
Marcel Holtmann
41e91c49a5 Add apitest utility 2006-09-28 15:23:24 +00:00
Marcel Holtmann
9ec342ce2d Don't use ident 0 for information request 2006-09-24 12:43:54 +00:00
Marcel Holtmann
329237dde2 Add information request command 2006-09-24 11:36:24 +00:00
Marcel Holtmann
117091aff7 More compatible usage of test 2006-09-05 10:54:36 +00:00
Marcel Holtmann
75dc7cdf39 Call sdp_service_search_async() as first test case 2006-08-30 22:37:55 +00:00
Marcel Holtmann
87268f7c7c Add sdptest utility 2006-08-29 22:08:09 +00:00
Johan Hedberg
2f1fece040 Fix hciemu GIOChannel usage 2006-08-26 17:26:18 +00:00
Marcel Holtmann
35e9349ffc Change default poll() timeout 2006-08-10 10:20:59 +00:00