On Wed, Aug 11, 2010 at 3:15 PM, Justin Ross <[email protected]> wrote:
> On Wed, 11 Aug 2010, Jonathan Robie wrote:
>
>> qpid-python-test generally assumes that programs to be executed are on the
>> path.
>>
>> I wrote some Python unit tests that use drain and spout in three
>> languages, and test interop. My tests specify the complete path to the
>> programs, but this makes installation a little more complex.
>
> I think the answer depends on what you intend to test.
>
> If it's just a generic interop test, don't use drain and spout.  Those are
> example programs.  An interop suite should use senders and receivers built
> for testing.

I also raised this issue several times before. We try to write
utilities that work as demos, examples, interop testing tools and end
up in a right royal mess.
It happened with the last set of examples as well.
The end result was that it severely restricted the examples to the
least common denominator to make sure it all worked.

I think we should have clear code examples, demos and utilities that
are specifically written for each purpose.
Feedback from customers indicate that while drain and spout are
excellent utilities for demonstrating the new addressing syntax or as
general testing tool, it's not good as code examples.

Rajith

> If it's specifically to test the example code, then the key concept is
> "default system location".  drain and spout don't need to be in the path,
> but the examples do need to live at a well-known base directory.  That way,
> your tests can find drains and spouts (from the base directory). Offer an
> environment variable for overriding the base directory.  Iow, for this
> particular problem, you don't need to use the search path.
>
> Why are we testing interop using drain and spout?  Is it just expediency?
>
> Justin
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to