diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-10-25 07:00:17 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-10-25 07:00:17 +0200 |
commit | 3676095363b6881cda7334f566f1ca0bf7d052c0 (patch) | |
tree | 5c3d82fed0b996ee43be339e52c09f2dcfadd4c9 /test | |
parent | aa98dfad8b6d3f70d0b36bbe43670ebf4093dae9 (diff) | |
download | obexd-3676095363b6881cda7334f566f1ca0bf7d052c0.tar.gz |
Add script for testing PullBusinessCard method
Diffstat (limited to 'test')
-rwxr-xr-x | test/pull-business-card | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pull-business-card b/test/pull-business-card new file mode 100755 index 0000000..253476d --- /dev/null +++ b/test/pull-business-card @@ -0,0 +1,14 @@ +#!/usr/bin/python + +import sys +import dbus + +bus = dbus.SessionBus() +client = dbus.Interface(bus.get_object("org.openobex.client", "/"), + "org.openobex.Client") + +if (len(sys.argv) < 3): + print "Usage: %s <device> <file>" % (sys.argv[0]) + sys.exit(1) + +client.PullBusinessCard({ "Destination": sys.argv[1] }, sys.argv[2]) |