All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH_v6] test: Add hangup-call script for GCF testing
@ 2012-08-06 15:42 Guillaume Zajac
  2012-08-06 15:53 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Zajac @ 2012-08-06 15:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 993 bytes --]

---
 Makefile.am      |    3 ++-
 test/hangup-call |   14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100755 test/hangup-call

diff --git a/Makefile.am b/Makefile.am
index 0c83775..56f9b34 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -626,7 +626,8 @@ test_scripts = test/backtrace \
 		test/release-and-answer \
 		test/release-and-swap \
 		test/hold-and-answer \
-		test/hangup-multiparty
+		test/hangup-multiparty \
+		test/hangup-call
 
 if TEST
 testdir = $(pkglibdir)/test
diff --git a/test/hangup-call b/test/hangup-call
new file mode 100755
index 0000000..4c46ec0
--- /dev/null
+++ b/test/hangup-call
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SystemBus()
+
+if (len(sys.argv) < 2):
+	print "Usage: %s [ Call Path ]" % (sys.argv[0])
+	sys.exit(1)
+
+call = dbus.Interface(bus.get_object('org.ofono', sys.argv[1]),
+						'org.ofono.VoiceCall')
+call.Hangup()
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH_v6] test: Add hangup-call script for GCF testing
  2012-08-06 15:42 [PATCH_v6] test: Add hangup-call script for GCF testing Guillaume Zajac
@ 2012-08-06 15:53 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2012-08-06 15:53 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

Hi Guillaume,

>  Makefile.am      |    3 ++-
>  test/hangup-call |   14 ++++++++++++++
>  2 files changed, 16 insertions(+), 1 deletions(-)
>  create mode 100755 test/hangup-call

patch has been applied.

Regards

Marcel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-06 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-06 15:42 [PATCH_v6] test: Add hangup-call script for GCF testing Guillaume Zajac
2012-08-06 15:53 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.