Commit Graph

11 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
Anderson Lizardo
32f40223cd test: Fix ProximityMonitor1 interface name typo in test-proximity 2013-07-26 09:23:37 -07:00
Johan Hedberg
e9c1672ada test: Fix missing call to parser.parse_args() in test-proximity 2013-02-04 14:29:15 +02:00
Luiz Augusto von Dentz
4750e35620 proximity: Append version to Proximity interfaces 2012-12-14 11:24:28 +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
Andrzej Kaczmarek
d2e88bfc99 test: Update proximity test script 2012-11-30 15:25:12 +02: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
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
Claudio Takahasi
fa63522766 Fix test-proximity usage info 2011-09-24 13:12:10 +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