Commit Graph

383 Commits

Author SHA1 Message Date
Andrzej Kaczmarek
6f4d4e0390 heartrate: Convert to DBus.Properties 2012-10-13 22:30:33 +03:00
Johan Hedberg
3b025cb748 test: Update test-discovery to match new API 2012-10-12 18:03:09 +03:00
Johan Hedberg
b1f1b58eec test: Update test-discovery to support the latest API 2012-10-12 18:02:34 +03:00
Gustavo Padovan
389d4f1c80 rctest: add option to save received data to file
works only for automated test option for now
2012-10-12 17:53:03 +03:00
Gustavo Padovan
03d1b7a4b0 rctest: add automated test
adds -a option to enable automated tests. We use the -i option to define
the receiving side and the -a define the sending side:

./rctest -i hci0 -a hci1
2012-10-12 17:53:00 +03:00
Vinicius Costa Gomes
7a63b8a0e6 test: Add support for passing address type to btiotest 2012-10-11 08:56:36 +02:00
Andrzej Kaczmarek
be551a275b thermometer: Update test script 2012-10-09 17:53:05 +02:00
Johan Hedberg
6efe73c147 test: Convert test-device to ObjectManager & D-Bus Properties 2012-10-09 12:45:41 +02:00
Johan Hedberg
17dc0666a8 test: Convert test-adapter to ObjectManager & D-Bus Properties 2012-10-09 12:27:29 +02:00
Johan Hedberg
e1a3b474e9 test: Update list-devices to ObjectManager 2012-10-09 12:03:03 +02:00
Anderson Lizardo
2983d07c6d alert: Implement Release() agent method
This method allows BlueZ to notify the agent that it will not be used
anymore, and can thus cleanup itself (e.g. deallocate D-Bus object, or
exit).
2012-10-03 22:29:34 +03:00
Eder Ruiz Maria
f4a4aa33f6 alert: Add test-alert script
This script is useful for testing the Alert API and testing the
implementation with PTS.
2012-10-03 22:28:20 +03:00
Rafal Garbat
e05ba1470b heartrate: Add test script 2012-09-28 13:21:11 +03:00
Johan Hedberg
363c8de2dd test: Fix fd handling in test-profile 2012-09-27 22:15:39 +03:00
Johan Hedberg
9e0714c2b1 test: Fix signature of Profile.NewConnection in test-profile 2012-09-26 16:29:09 +03:00
Johan Hedberg
f752bac242 test: Add PSM and Channel options to test-profile 2012-09-26 15:13:20 +03:00
Johan Hedberg
ac06c7f76c test: Improve test-profile functionality 2012-09-26 14:50:40 +03:00
Johan Hedberg
3278dc2e66 test: Add some more options to test-profile registration 2012-09-25 19:17:00 +03:00
Johan Hedberg
384f7e11a7 test: Add test-profile test script 2012-09-25 15:38:45 +03:00
Johan Hedberg
6ee8f62e85 test: Add command for Device.Connect() 2012-09-25 12:40:42 +03:00
Johan Hedberg
d3634b4b82 test: Add compact mode to test-discovery 2012-09-07 14:12:33 +03:00
Szymon Janc
b3fa97f8e7 hciemu: Fix build errors due to unaligned memory access
This fix following build errors on ARM.

  CC     test/hciemu.o
test/hciemu.c: In function num_completed_pkts:
test/hciemu.c:429:4: error: cast increases required alignment of target
	 type [-Werror=cast-align]
test/hciemu.c:430:4: error: cast increases required alignment of target
	type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/hciemu.o] Error 1
make: *** [all] Error 2
2012-09-05 12:29:51 +03:00
Szymon Janc
f00bdeb27a scotest: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.

  CC     test/scotest.o
test/scotest.c: In function send_mode:
test/scotest.c:272:4: error: cast increases required alignment of
	target type [-Werror=cast-align]
test/scotest.c:273:4: error: cast increases required alignment of
	target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/scotest.o] Error 1
make: *** [all] Error 2
2012-09-05 12:16:50 +03:00
Szymon Janc
9139fc4ea3 rctest: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.

  CC     test/rctest.o
test/rctest.c: In function do_send:
test/rctest.c:539:4: error: cast increases required alignment of target
	type [-Werror=cast-align]
test/rctest.c:540:4: error: cast increases required alignment of target
	type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/rctest.o] Error 1
2012-09-05 12:16:38 +03:00
Szymon Janc
89cb335422 l2test: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.

  CC     test/l2test.o
test/l2test.c: In function recv_mode:
test/l2test.c:826:9: error: cast increases required alignment of target
	type [-Werror=cast-align]
test/l2test.c:834:8: error: cast increases required alignment of target
	type [-Werror=cast-align]
test/l2test.c: In function do_send:
test/l2test.c:893:4: error: cast increases required alignment of target
	type [-Werror=cast-align]
test/l2test.c:894:4: error: cast increases required alignment of target
	type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/l2test.o] Error 1
2012-09-05 12:16:15 +03:00
Johan Hedberg
60706d6ea9 simple-agent: Update to match correct DisplayPasskey API 2012-09-04 16:34:41 +03:00
Gustavo Padovan
4db85fe8fa rctest: fix typo
recevied -> received
2012-08-30 10:43:21 -07:00
Johan Hedberg
5dd93fc16a Update code base to use the new BtIO API 2012-08-28 17:18:28 -07:00
Anderson Lizardo
78889501f8 Fix trivial coding style issues on pointer declarations and casting
Avoid using C++ style pointer declarations like "char* ptr", as most
BlueZ code uses "char *ptr".
2012-08-26 09:37:06 +01:00
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