public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] [patch]  make apitest more useful
@ 2008-03-06 18:48 Stefan Seyfried
  2008-03-07 14:16 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Seyfried @ 2008-03-06 18:48 UTC (permalink / raw)
  To: BlueZ development

This trivial 2-character patch makes apitest much more useful by allowing
stuff like "apitest -l DiscoverDevices" to work like i'd expect it to:

--- /usr/bin/apitest	2008-03-02 19:22:20.000000000 +0100
+++ /home/seife/bin/apitest.seife	2008-03-06 19:44:52.000000000 +0100
@@ -415,7 +415,7 @@ class Tester:
             self.dbus_dev_sig_setup()
             print 'Listening for events...'

-        elif self.cmd in mgr_cmds:
+        if self.cmd in mgr_cmds:
             try:
                 self.dbus_mgr_setup()
             except dbus.DBusException, e:


Now we can alias "hcitool scan" to "apitest -l DiscoverDevices" ;-)
-- =

Stefan Seyfried
R&D Team Mobile Devices            |              "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out."

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG N=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] [patch]  make apitest more useful
  2008-03-06 18:48 [Bluez-devel] [patch] make apitest more useful Stefan Seyfried
@ 2008-03-07 14:16 ` Marcel Holtmann
  2008-03-07 15:06   ` Stefan Seyfried
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2008-03-07 14:16 UTC (permalink / raw)
  To: BlueZ development

Hi Stefan,

> This trivial 2-character patch makes apitest much more useful by allowing
> stuff like "apitest -l DiscoverDevices" to work like i'd expect it to:
> 
> --- /usr/bin/apitest	2008-03-02 19:22:20.000000000 +0100
> +++ /home/seife/bin/apitest.seife	2008-03-06 19:44:52.000000000 +0100
> @@ -415,7 +415,7 @@ class Tester:
>              self.dbus_dev_sig_setup()
>              print 'Listening for events...'
> 
> -        elif self.cmd in mgr_cmds:
> +        if self.cmd in mgr_cmds:
>              try:
>                  self.dbus_mgr_setup()
>              except dbus.DBusException, e:
> 
> 
> Now we can alias "hcitool scan" to "apitest -l DiscoverDevices" ;-)

the apitest is really only a test program, but I applied the patch
neverless.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] [patch]  make apitest more useful
  2008-03-07 14:16 ` Marcel Holtmann
@ 2008-03-07 15:06   ` Stefan Seyfried
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Seyfried @ 2008-03-07 15:06 UTC (permalink / raw)
  To: bluez-devel

Hi Marcel,

On Fri, Mar 07, 2008 at 03:16:09PM +0100, Marcel Holtmann wrote:

> the apitest is really only a test program,

I know :-)
It is still useful to hand out to people for debugging their setup.
As it is much more low level than bluez-gnome and kdebluetooth, it
is easier to tell a bug reporter *exactly* what to do with apitest
than with the grapical tools. That's why i bothered fixing that issue.

> but I applied the patch neverless.

Thanks. It now actually allows to test "DiscoverDevices" which is much
more useful, even as testing tool only ;-)
-- =

Stefan Seyfried
R&D Team Mobile Devices            |              "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out." =


This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG N=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-03-07 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 18:48 [Bluez-devel] [patch] make apitest more useful Stefan Seyfried
2008-03-07 14:16 ` Marcel Holtmann
2008-03-07 15:06   ` Stefan Seyfried

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox