Commit Graph

332 Commits

Author SHA1 Message Date
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