All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Max Kellermann <max@duempel.org>
Cc: Netfilter development mailing list <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH nfsim] tcpsession: implement the RESET command
Date: Tue, 11 Oct 2005 20:34:43 +1000	[thread overview]
Message-ID: <1129026884.8218.47.camel@localhost.localdomain> (raw)
In-Reply-To: <20051010131437.GA25965@roonstrasse.net>

On Mon, 2005-10-10 at 15:14 +0200, Max Kellermann wrote:
> On 2005/10/10 15:03, Rusty Russell <rusty@rustcorp.com.au> wrote:
> > > That assumes that nfsim provides the extensions, or that extensions
> > > have to be installed in one of those paths.  IMHO, the extensions may
> > > be shipped along with a test.  e.g. my h323 tests ship their own
> > > tools.  To make testing easy, it should be possible to use extensions
> > > without installing them (i.e. without root access?).
> > 
> > I assumed you would want to merge your tests into nfsim-testsuite...
> 
> I do want that.  But there is a reason nfsim-testsuite is separate
> from nfsim itself, and the extensions (like my generate-h225-packet
> tool) are co-developed with the tests using it, not with nfsim itself.

Sure, but if they are generic enough they belong in nfsim, I think.
nfsim is more than the basis for the testsuite: it also allows people to
test their particular configurations.  So I would argue that your tools
belong in nfsim.

> > OK, how about this:
> > (1) Use $NFSIM_EXTPATH if set, else
> > (1) Use ".:tools/extensions:$PATH" if we're in the nfsim dir, else
> > (2) Use ".:/usr/lib/nfsim/extensions:$PATH" if we're not.
> 
> Why don't you add all of them to $PATH (if set and present)?  I
> believe the following order would be best:
> 
>  1. "." (or better `dirname $testfile.sim`)
>  2. $NFSIM_EXTPATH
>  3. $srcdir/tools/extensions
>  4. $pkglibdir
> 
> It is perfectly possible for a test suite to use extensions included
> in nfsim _and_ extensions the test suite itself shipped.

No.  NFSIM_EXTPATH should override: the user can create the above logic
if they want.  I certainly don't want to run random programs which
happen to be in the path.

Rusty.
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman

      reply	other threads:[~2005-10-11 10:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22  8:24 [PATCH nfsim] tcpsession: implement the RESET command Max Kellermann
2005-10-07 17:53 ` Rusty Russell
     [not found]   ` <20051008090622.GA9337@roonstrasse.net>
2005-10-10 10:37     ` Rusty Russell
2005-10-10 11:51       ` Max Kellermann
2005-10-10 13:03         ` Rusty Russell
2005-10-10 13:14           ` Max Kellermann
2005-10-11 10:34             ` Rusty Russell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1129026884.8218.47.camel@localhost.localdomain \
    --to=rusty@rustcorp.com.au \
    --cc=max@duempel.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.