Ethereal-dev: [Ethereal-dev] RFC: Test suite for (t)ethereal?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Wed, 07 Dec 2005 13:24:01 +0100
Hi List!

I've done some substantial changes to tethereal, basically using a lot of code from capture_loop.c instead of the duplicate code in tethereal.c (it reduced it by about 400 lines of code).

Now I'm a bit "frightened" to check in the changes, as I'm pretty sure I've introduced some new bugs.

What I would like to have is a test suite to check (at least) the various command line options by a test script, so we can avoid these kind of problems in the future.

I would like to have an automated test suite to check several functionalities:

- capturing (with various conditions, interface settings, ...)
- stop after a specific capture time
- stop after a specific amount of time
- stop after a number of files captured
- check expected output strings
- check output files (e.g. by using capinfos)
- ...

Now I'm unsure what kind of test suite should be used. It should be cross platform and should be easy to use (simple?).

I'm pretty sure, theres already something available for this, so we don't have to start from scratch.

Maybe a perl, bash or whatever script.

We might want to add these test to the buildbot later :-)

Any suggestions?

Regards, ULFL