diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-09-25 14:04:43 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-09-25 14:04:43 -0700 |
commit | 81f2f74dfdf5842c3c29683b7e21c00429309f97 (patch) | |
tree | 64b5412b95e09d6db9aee3422f796ecb6f86e1ca /test/send-sms | |
parent | 6a6213670c0084d1d561a5f7bfad526ad3c60159 (diff) | |
download | ofono-81f2f74dfdf5842c3c29683b7e21c00429309f97.tar.bz2 |
Add some more test scripts for SMS and voice call testing
Diffstat (limited to 'test/send-sms')
-rwxr-xr-x | test/send-sms | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/send-sms b/test/send-sms new file mode 100755 index 00000000..99e237a2 --- /dev/null +++ b/test/send-sms @@ -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.SmsManager') + +manager.SendMessage([ sys.argv[1] ], sys.argv[2]) |