* [PATCH] test: Add test script to list services properties
2012-08-10 15:16 [PATCH] mmsd: Add list-services script Ronald Tessier
@ 2012-08-10 15:16 ` Ronald Tessier
0 siblings, 0 replies; 4+ messages in thread
From: Ronald Tessier @ 2012-08-10 15:16 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
---
test/list-services | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100755 test/list-services
diff --git a/test/list-services b/test/list-services
new file mode 100755
index 0000000..bd52d71
--- /dev/null
+++ b/test/list-services
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SessionBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'),
+ 'org.ofono.mms.Manager')
+
+services = manager.GetServices()
+
+for path, properties in services:
+ print "[ %s ]" % (path)
+
+ object = dbus.Interface(bus.get_object('org.ofono.mms', path),
+ 'org.ofono.mms.Service')
+
+ try:
+ properties = object.GetProperties()
+ except:
+ continue
+
+ for key in properties.keys():
+ val = str(properties[key])
+ print " %s = %s" % (key, val)
+
+ print
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] mmsd: (resending) Add list-services script
@ 2012-08-24 12:58 Ronald Tessier
2012-08-24 12:58 ` [PATCH] test: Add test script to list services properties Ronald Tessier
0 siblings, 1 reply; 4+ messages in thread
From: Ronald Tessier @ 2012-08-24 12:58 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 308 bytes --]
Add list-services script.
This script lists all services with their properties.
Ronald Tessier (1):
test: Add test script to list services properties
test/list-services | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100755 test/list-services
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] test: Add test script to list services properties
2012-08-24 12:58 [PATCH] mmsd: (resending) Add list-services script Ronald Tessier
@ 2012-08-24 12:58 ` Ronald Tessier
2012-08-24 15:54 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: Ronald Tessier @ 2012-08-24 12:58 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
---
test/list-services | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100755 test/list-services
diff --git a/test/list-services b/test/list-services
new file mode 100755
index 0000000..bd52d71
--- /dev/null
+++ b/test/list-services
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SessionBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'),
+ 'org.ofono.mms.Manager')
+
+services = manager.GetServices()
+
+for path, properties in services:
+ print "[ %s ]" % (path)
+
+ object = dbus.Interface(bus.get_object('org.ofono.mms', path),
+ 'org.ofono.mms.Service')
+
+ try:
+ properties = object.GetProperties()
+ except:
+ continue
+
+ for key in properties.keys():
+ val = str(properties[key])
+ print " %s = %s" % (key, val)
+
+ print
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] test: Add test script to list services properties
2012-08-24 12:58 ` [PATCH] test: Add test script to list services properties Ronald Tessier
@ 2012-08-24 15:54 ` Denis Kenzior
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2012-08-24 15:54 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
Hi Ronald,
On 08/24/2012 07:58 AM, Ronald Tessier wrote:
> ---
> test/list-services | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
> create mode 100755 test/list-services
>
Patch has been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-24 15:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 12:58 [PATCH] mmsd: (resending) Add list-services script Ronald Tessier
2012-08-24 12:58 ` [PATCH] test: Add test script to list services properties Ronald Tessier
2012-08-24 15:54 ` Denis Kenzior
-- strict thread matches above, loose matches on Subject: below --
2012-08-10 15:16 [PATCH] mmsd: Add list-services script Ronald Tessier
2012-08-10 15:16 ` [PATCH] test: Add test script to list services properties Ronald Tessier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox