summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/Makefile.am2
-rw-r--r--test/dbusdef.py7
2 files changed, 8 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index dde68ed0..7b1f0713 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -33,6 +33,6 @@ endif
INCLUDES = -I$(top_srcdir)/common
-EXTRA_DIST = apitest hsplay hsmicro bdaddr.8
+EXTRA_DIST = apitest hsplay hsmicro bdaddr.8 dbusdef.py
MAINTAINERCLEANFILES = Makefile.in
diff --git a/test/dbusdef.py b/test/dbusdef.py
new file mode 100644
index 00000000..29cf7ffc
--- /dev/null
+++ b/test/dbusdef.py
@@ -0,0 +1,7 @@
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
+
+adapter = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.Adapter')