summaryrefslogtreecommitdiff
path: root/test/test-manager
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-11-19 10:22:05 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-11-19 10:22:05 +0100
commit80ef1286cda5b5ec2ec48f0572a2909ad80c06b0 (patch)
tree3cbcfc3d0533bcc6b0b40fb9f12918d2c6b17a81 /test/test-manager
parenta5d0c184434c2d4385aa69a0de703fe0eb06b6e2 (diff)
downloadconnman-80ef1286cda5b5ec2ec48f0572a2909ad80c06b0.tar.gz
connman-80ef1286cda5b5ec2ec48f0572a2909ad80c06b0.tar.bz2
connman-80ef1286cda5b5ec2ec48f0572a2909ad80c06b0.zip
Add script for testing manager interface
Diffstat (limited to 'test/test-manager')
-rwxr-xr-xtest/test-manager22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test-manager b/test/test-manager
new file mode 100755
index 00000000..d06391fc
--- /dev/null
+++ b/test/test-manager
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
+ "org.moblin.connman.Manager")
+
+properties = manager.GetProperties()
+
+def print_list(key, value):
+ text = ""
+ for path in value:
+ text = text + str(path)
+ print "%s = %s" % (key, text)
+
+for key in properties.keys():
+ if (key in ["Profiles", "Devices", "Connections"]):
+ print_list(key, properties[key])
+ else:
+ print "%s = %s" % (key, properties[key])