summaryrefslogtreecommitdiffstats
path: root/test/hangup-all
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-09-25 14:04:43 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-09-25 14:04:43 -0700
commit81f2f74dfdf5842c3c29683b7e21c00429309f97 (patch)
tree64b5412b95e09d6db9aee3422f796ecb6f86e1ca /test/hangup-all
parent6a6213670c0084d1d561a5f7bfad526ad3c60159 (diff)
downloadofono-81f2f74dfdf5842c3c29683b7e21c00429309f97.tar.bz2
Add some more test scripts for SMS and voice call testing
Diffstat (limited to 'test/hangup-all')
-rwxr-xr-xtest/hangup-all18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/hangup-all b/test/hangup-all
new file mode 100755
index 00000000..d75a29c6
--- /dev/null
+++ b/test/hangup-all
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono', '/'),
+ 'org.ofono.Manager')
+
+properties = manager.GetProperties()
+
+path = properties["Modems"][0]
+
+manager = dbus.Interface(bus.get_object('org.ofono', path),
+ 'org.ofono.VoiceCallManager')
+
+manager.HangupAll()