Commit Graph

21 Commits

Author SHA1 Message Date
Petri Gynther
7adf8d09b4 test: Python import cleanup
Some test scripts use "from gi.repository import GObject" whereas others
use "import gobject". gi.repository is not always available on embedded
systems, so convert all instances to this format:

try:
  from gi.repository import GObject
except ImportError:
  import gobject as GObject

Also, sort the imports in this order: system, dbus, gobject, bluezutils
2014-01-18 00:38:39 -08:00
Johan Hedberg
43af5ef5a3 test: Remove non-exitent items from test-device help text 2012-12-20 00:34:38 +02:00
Johan Hedberg
6cd899c172 test: Remove non-existent features from test-device 2012-12-20 00:10:45 +02:00
Mikel Astiz
419f00496c test: Fix test-device using wrong interface
The property getter and setter belong to org.freedesktop.DBus.Properties
and therefore fix this code using the wrong interface since commit
67dab2d2ae.
2012-12-06 17:41:39 +02:00
Mikel Astiz
88b483b154 dbus: Rename to org.bluez.Device1
Trivially add the numbering suffix to org.bluez.Device according to
the proposal for BlueZ 5.
2012-12-05 16:41:30 +02:00
Mikel Astiz
67dab2d2ae test: Avoid using Adapter.FindDevice()
The method is now deprecated and thus the replacement utility library
should be used in the test scripts.
2012-12-05 16:41:02 +02:00
Mikel Astiz
90e7850d95 test: Avoid using DefaultAdapter()
Call the utility library -which uses ObjectManager API- to avoid using
Manager.FindAdapter() and Manager.DefaultAdapter().
2012-12-05 16:39:34 +02:00
Johan Hedberg
db16bed29c test: Add ConnectProfile and DisconnectProfile support to test-device 2012-11-13 12:36:38 +02:00
Johan Hedberg
01a2495a83 test: List only specified adapter's devices in list-devices 2012-10-17 17:38:38 +03:00
Johan Hedberg
6efe73c147 test: Convert test-device to ObjectManager & D-Bus Properties 2012-10-09 12:45:41 +02:00
Johan Hedberg
6ee8f62e85 test: Add command for Device.Connect() 2012-09-25 12:40:42 +03:00
Gustavo Padovan
5a4951dae6 adapter: remove deprecated ListDevices() method 2012-07-04 15:43:06 +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
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
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
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
Marcel Holtmann
cf92b6dc9c Move test scripts into test directory 2008-09-01 22:34:04 +02:00