summaryrefslogtreecommitdiff
path: root/test/test-clock
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-clock')
-rwxr-xr-xtest/test-clock19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test-clock b/test/test-clock
new file mode 100755
index 00000000..e9b76fca
--- /dev/null
+++ b/test/test-clock
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+clock = dbus.Interface(bus.get_object("net.connman", "/"),
+ "net.connman.Clock")
+
+properties = clock.GetProperties()
+
+for key in properties.keys():
+ if key in ["Timeservers"]:
+ list = ""
+ for val in properties[key]:
+ list = list + val + " "
+ print "%s = [ %s]" % (key, list)
+ else:
+ print "%s = %s" % (key, properties[key])