summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2012-08-03 16:50:01 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-08-03 09:56:34 -0700
commit9ca225f8e7e3efa3648725bd6a7ad101624bce34 (patch)
tree6dc1d6f89c34fe08d0cec3247a44dcccae205dd9
parent9f7087aa1a0bfce128e2a35c8e7bd6a798e6868a (diff)
downloadofono-9ca225f8e7e3efa3648725bd6a7ad101624bce34.tar.bz2
test: Add hangup-multiparty script for GCF testing
-rw-r--r--Makefile.am3
-rwxr-xr-xtest/hangup-multiparty20
2 files changed, 22 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 99d4ab0f..7e8f12c3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -624,7 +624,8 @@ test_scripts = test/backtrace \
test/test-gnss \
test/swap-calls \
test/release-and-answer \
- test/hold-and-answer
+ test/hold-and-answer \
+ test/hangup-multiparty
if TEST
testdir = $(pkglibdir)/test
diff --git a/test/hangup-multiparty b/test/hangup-multiparty
new file mode 100755
index 00000000..48fe3428
--- /dev/null
+++ b/test/hangup-multiparty
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono', '/'),
+ 'org.ofono.Manager')
+
+modems = manager.GetModems()
+modem = modems[0][0]
+
+if (len(sys.argv) == 2):
+ modem = sys.argv[1]
+
+manager = dbus.Interface(bus.get_object('org.ofono', modem),
+ 'org.ofono.VoiceCallManager')
+
+manager.HangupMultiparty()