* [PATCH BlueZ] serial: Remove serial test script
@ 2012-07-19 16:36 Claudio Takahasi
2012-07-19 16:36 ` [PATCH BlueZ] serial: Remove serial proxy " Claudio Takahasi
2012-07-24 9:34 ` [PATCH BlueZ] serial: Remove serial " Johan Hedberg
0 siblings, 2 replies; 7+ messages in thread
From: Claudio Takahasi @ 2012-07-19 16:36 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudio Takahasi
---
test/test-serial | 58 ------------------------------------------------------
1 files changed, 0 insertions(+), 58 deletions(-)
delete mode 100755 test/test-serial
diff --git a/test/test-serial b/test/test-serial
deleted file mode 100755
index 8858dbd..0000000
--- a/test/test-serial
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/python
-
-from __future__ import absolute_import, print_function, unicode_literals
-
-import sys
-import time
-import dbus
-from optparse import OptionParser, make_option
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.bluez", "/"),
- "org.bluez.Manager")
-option_list = [
- make_option("-i", "--device", action="store",
- type="string", dest="dev_id"),
- ]
-parser = OptionParser(option_list=option_list)
-
-(options, args) = parser.parse_args()
-
-if options.dev_id:
- adapter_path = manager.FindAdapter(options.dev_id)
-else:
- adapter_path = manager.DefaultAdapter()
-
-adapter = dbus.Interface(bus.get_object("org.bluez", adapter_path),
- "org.bluez.Adapter")
-
-if (len(args) < 1):
- print("Usage: %s <address> [service]" % (sys.argv[0]))
- sys.exit(1)
-
-address = args[0]
-
-if (len(args) < 2):
- service = "spp"
-else:
- service = args[1]
-
-path = adapter.FindDevice(address)
-
-serial = dbus.Interface(bus.get_object("org.bluez", path),
- "org.bluez.Serial")
-
-node = serial.Connect(service)
-
-print("Connected %s to %s" % (node, address))
-
-print("Press CTRL-C to disconnect")
-
-try:
- time.sleep(1000)
- print("Terminating connection")
-except:
- pass
-
-serial.Disconnect(node)
--
1.7.8.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH BlueZ] serial: Remove serial proxy test script
2012-07-19 16:36 [PATCH BlueZ] serial: Remove serial test script Claudio Takahasi
@ 2012-07-19 16:36 ` Claudio Takahasi
2012-07-24 13:11 ` [PATCH BlueZ v2] " Claudio Takahasi
2012-07-24 9:34 ` [PATCH BlueZ] serial: Remove serial " Johan Hedberg
1 sibling, 1 reply; 7+ messages in thread
From: Claudio Takahasi @ 2012-07-19 16:36 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudio Takahasi
---
test/test-serial-proxy | 66 ------------------------------------------------
1 files changed, 0 insertions(+), 66 deletions(-)
delete mode 100755 test/test-serial-proxy
diff --git a/test/test-serial-proxy b/test/test-serial-proxy
deleted file mode 100755
index 7963f23..0000000
--- a/test/test-serial-proxy
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/python
-
-from __future__ import absolute_import, print_function, unicode_literals
-
-import sys
-import time
-import dbus
-import socket
-from optparse import OptionParser, make_option
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.bluez", "/"),
- "org.bluez.Manager")
-option_list = [
- make_option("-i", "--device", action="store",
- type="string", dest="dev_id"),
- ]
-parser = OptionParser(option_list=option_list)
-
-(options, args) = parser.parse_args()
-
-if options.dev_id:
- adapter_path = manager.FindAdapter(options.dev_id)
-else:
- adapter_path = manager.DefaultAdapter()
-
-adapter = dbus.Interface(bus.get_object("org.bluez", adapter_path),
- "org.bluez.Adapter")
-
-if (len(args) < 1):
- print("Usage: %s <socket_name> [service]" % (sys.argv[0]))
- sys.exit(1)
-
-socket_name = args[0]
-
-if (len(args) < 2):
- service = "spp"
-else:
- service = args[1]
-
-sk = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
-sk.bind(socket_name)
-sk.listen(1)
-
-proxy_manager = dbus.Interface(bus.get_object("org.bluez", adapter_path),
- "org.bluez.SerialProxyManager")
-proxy_path = proxy_manager.CreateProxy(service, socket_name)
-
-proxy = dbus.Interface(bus.get_object("org.bluez", proxy_path),
- "org.bluez.SerialProxy")
-proxy.Enable()
-
-conn, addr = sk.accept()
-
-print("Waiting for message")
-
-while 1:
- data = conn.recv(1024)
- if data:
- print(data)
- break
-
-proxy.Disable()
-proxy_manager.RemoveProxy(proxy_path)
-conn.close()
--
1.7.8.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH BlueZ] serial: Remove serial test script
2012-07-19 16:36 [PATCH BlueZ] serial: Remove serial test script Claudio Takahasi
2012-07-19 16:36 ` [PATCH BlueZ] serial: Remove serial proxy " Claudio Takahasi
@ 2012-07-24 9:34 ` Johan Hedberg
2012-07-24 13:08 ` [PATCH BlueZ v2] " Claudio Takahasi
1 sibling, 1 reply; 7+ messages in thread
From: Johan Hedberg @ 2012-07-24 9:34 UTC (permalink / raw)
To: Claudio Takahasi; +Cc: linux-bluetooth
Hi Claudio,
On Thu, Jul 19, 2012, Claudio Takahasi wrote:
> ---
> test/test-serial | 58 ------------------------------------------------------
> 1 files changed, 0 insertions(+), 58 deletions(-)
> delete mode 100755 test/test-serial
Both of your test-* patches are missing the necessary updates to
Makefile.tools. Please fix and resend.
Johan
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH BlueZ v2] serial: Remove serial test script
2012-07-24 9:34 ` [PATCH BlueZ] serial: Remove serial " Johan Hedberg
@ 2012-07-24 13:08 ` Claudio Takahasi
2012-07-24 13:38 ` Johan Hedberg
0 siblings, 1 reply; 7+ messages in thread
From: Claudio Takahasi @ 2012-07-24 13:08 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudio Takahasi
---
Makefile.tools | 10 ++++----
test/test-serial | 58 ------------------------------------------------------
2 files changed, 5 insertions(+), 63 deletions(-)
delete mode 100755 test/test-serial
diff --git a/Makefile.tools b/Makefile.tools
index fccac2d..4c70db1 100644
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -218,11 +218,11 @@ endif
EXTRA_DIST += test/sap_client.py test/hsplay test/hsmicro \
test/dbusdef.py test/monitor-bluetooth test/list-devices \
test/test-discovery test/test-manager test/test-adapter \
- test/test-device test/test-service test/test-serial \
- test/test-telephony test/test-network test/simple-agent \
- test/simple-service test/simple-endpoint test/test-audio \
- test/test-input test/test-sap-server test/test-oob \
- test/test-attrib test/test-proximity test/test-thermometer \
+ test/test-device test/test-service test/test-telephony \
+ test/test-network test/simple-agent test/simple-service \
+ test/simple-endpoint test/test-audio test/test-input \
+ test/test-sap-server test/test-oob test/test-attrib \
+ test/test-proximity test/test-thermometer \
test/test-serial-proxy test/test-health test/test-health-sink \
test/service-record.dtd test/service-did.xml \
test/service-spp.xml test/service-opp.xml test/service-ftp.xml \
diff --git a/test/test-serial b/test/test-serial
deleted file mode 100755
index 8858dbd..0000000
--- a/test/test-serial
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/python
-
-from __future__ import absolute_import, print_function, unicode_literals
-
-import sys
-import time
-import dbus
-from optparse import OptionParser, make_option
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.bluez", "/"),
- "org.bluez.Manager")
-option_list = [
- make_option("-i", "--device", action="store",
- type="string", dest="dev_id"),
- ]
-parser = OptionParser(option_list=option_list)
-
-(options, args) = parser.parse_args()
-
-if options.dev_id:
- adapter_path = manager.FindAdapter(options.dev_id)
-else:
- adapter_path = manager.DefaultAdapter()
-
-adapter = dbus.Interface(bus.get_object("org.bluez", adapter_path),
- "org.bluez.Adapter")
-
-if (len(args) < 1):
- print("Usage: %s <address> [service]" % (sys.argv[0]))
- sys.exit(1)
-
-address = args[0]
-
-if (len(args) < 2):
- service = "spp"
-else:
- service = args[1]
-
-path = adapter.FindDevice(address)
-
-serial = dbus.Interface(bus.get_object("org.bluez", path),
- "org.bluez.Serial")
-
-node = serial.Connect(service)
-
-print("Connected %s to %s" % (node, address))
-
-print("Press CTRL-C to disconnect")
-
-try:
- time.sleep(1000)
- print("Terminating connection")
-except:
- pass
-
-serial.Disconnect(node)
--
1.7.8.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH BlueZ v2] serial: Remove serial proxy test script
2012-07-19 16:36 ` [PATCH BlueZ] serial: Remove serial proxy " Claudio Takahasi
@ 2012-07-24 13:11 ` Claudio Takahasi
2012-07-24 13:38 ` Johan Hedberg
0 siblings, 1 reply; 7+ messages in thread
From: Claudio Takahasi @ 2012-07-24 13:11 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudio Takahasi
---
Makefile.tools | 9 +++---
test/test-serial-proxy | 66 ------------------------------------------------
2 files changed, 4 insertions(+), 71 deletions(-)
delete mode 100755 test/test-serial-proxy
diff --git a/Makefile.tools b/Makefile.tools
index 4c70db1..5579b86 100644
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -222,8 +222,7 @@ EXTRA_DIST += test/sap_client.py test/hsplay test/hsmicro \
test/test-network test/simple-agent test/simple-service \
test/simple-endpoint test/test-audio test/test-input \
test/test-sap-server test/test-oob test/test-attrib \
- test/test-proximity test/test-thermometer \
- test/test-serial-proxy test/test-health test/test-health-sink \
- test/service-record.dtd test/service-did.xml \
- test/service-spp.xml test/service-opp.xml test/service-ftp.xml \
- test/simple-player test/test-nap
+ test/test-proximity test/test-thermometer test/test-health \
+ test/test-health-sink test/service-record.dtd \
+ test/service-did.xml test/service-spp.xml test/service-opp.xml \
+ test/service-ftp.xml test/simple-player test/test-nap
diff --git a/test/test-serial-proxy b/test/test-serial-proxy
deleted file mode 100755
index 7963f23..0000000
--- a/test/test-serial-proxy
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/python
-
-from __future__ import absolute_import, print_function, unicode_literals
-
-import sys
-import time
-import dbus
-import socket
-from optparse import OptionParser, make_option
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.bluez", "/"),
- "org.bluez.Manager")
-option_list = [
- make_option("-i", "--device", action="store",
- type="string", dest="dev_id"),
- ]
-parser = OptionParser(option_list=option_list)
-
-(options, args) = parser.parse_args()
-
-if options.dev_id:
- adapter_path = manager.FindAdapter(options.dev_id)
-else:
- adapter_path = manager.DefaultAdapter()
-
-adapter = dbus.Interface(bus.get_object("org.bluez", adapter_path),
- "org.bluez.Adapter")
-
-if (len(args) < 1):
- print("Usage: %s <socket_name> [service]" % (sys.argv[0]))
- sys.exit(1)
-
-socket_name = args[0]
-
-if (len(args) < 2):
- service = "spp"
-else:
- service = args[1]
-
-sk = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
-sk.bind(socket_name)
-sk.listen(1)
-
-proxy_manager = dbus.Interface(bus.get_object("org.bluez", adapter_path),
- "org.bluez.SerialProxyManager")
-proxy_path = proxy_manager.CreateProxy(service, socket_name)
-
-proxy = dbus.Interface(bus.get_object("org.bluez", proxy_path),
- "org.bluez.SerialProxy")
-proxy.Enable()
-
-conn, addr = sk.accept()
-
-print("Waiting for message")
-
-while 1:
- data = conn.recv(1024)
- if data:
- print(data)
- break
-
-proxy.Disable()
-proxy_manager.RemoveProxy(proxy_path)
-conn.close()
--
1.7.8.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH BlueZ v2] serial: Remove serial test script
2012-07-24 13:08 ` [PATCH BlueZ v2] " Claudio Takahasi
@ 2012-07-24 13:38 ` Johan Hedberg
0 siblings, 0 replies; 7+ messages in thread
From: Johan Hedberg @ 2012-07-24 13:38 UTC (permalink / raw)
To: Claudio Takahasi; +Cc: linux-bluetooth
Hi Claudio,
On Tue, Jul 24, 2012, Claudio Takahasi wrote:
> ---
> Makefile.tools | 10 ++++----
> test/test-serial | 58 ------------------------------------------------------
> 2 files changed, 5 insertions(+), 63 deletions(-)
> delete mode 100755 test/test-serial
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH BlueZ v2] serial: Remove serial proxy test script
2012-07-24 13:11 ` [PATCH BlueZ v2] " Claudio Takahasi
@ 2012-07-24 13:38 ` Johan Hedberg
0 siblings, 0 replies; 7+ messages in thread
From: Johan Hedberg @ 2012-07-24 13:38 UTC (permalink / raw)
To: Claudio Takahasi; +Cc: linux-bluetooth
Hi Claudio,
On Tue, Jul 24, 2012, Claudio Takahasi wrote:
> ---
> Makefile.tools | 9 +++---
> test/test-serial-proxy | 66 ------------------------------------------------
> 2 files changed, 4 insertions(+), 71 deletions(-)
> delete mode 100755 test/test-serial-proxy
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-07-24 13:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-19 16:36 [PATCH BlueZ] serial: Remove serial test script Claudio Takahasi
2012-07-19 16:36 ` [PATCH BlueZ] serial: Remove serial proxy " Claudio Takahasi
2012-07-24 13:11 ` [PATCH BlueZ v2] " Claudio Takahasi
2012-07-24 13:38 ` Johan Hedberg
2012-07-24 9:34 ` [PATCH BlueZ] serial: Remove serial " Johan Hedberg
2012-07-24 13:08 ` [PATCH BlueZ v2] " Claudio Takahasi
2012-07-24 13:38 ` Johan Hedberg
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.