DejaGnu suitable for network server testing?

View: New views
2 Messages — Rating Filter:   Alert me  

DejaGnu suitable for network server testing?

by Rainer Gerhards-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I hope this is the right list. I went through the DejaGnu doc, but I
have to admit I did not immediately grasp if I could use it to solve
my needs. So I thought I ask a quick question, which could eventually
save me from spending a lot of time reading just to find out I am on
the wrong path. So actually a quick yes or no type of answer would be
fine with me.

I am in the process at building test suites for my rsyslog project.
This is a GPLv3 syslogd replacement. Almost all tests involve running
a server instance of the daemon, running some other tool to send data
to it, shut down the daemon and examine logs. For some test cases, it
would also be useful to start up two different instances of the daemon
plus an additional tool and check if inter-daemon traffic is correctly
handled. The instances need not run on different machines (it is a
plus if that's possible, but I'll probably limit my test cases to a
single machine at first - I am happy if I can come that far...).

In the long term, this could also result in a compliance test for the
new syslog RFCs, but that's too much of future.

The basic question is: can I do this with DejaGnu? And while we are at
it, does someone happen to know a link to a tutorial how this is done
(OK, that's more than a yes/no, but that's the optional part of my
question ;)).

Any advise is deeply appreciated.

Rainer Gerhards


_______________________________________________
DejaGnu mailing list
DejaGnu@...
http://lists.gnu.org/mailman/listinfo/dejagnu

Re: DejaGnu suitable for network server testing?

by Rob Savoye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rainer Gerhards wrote:

> the wrong path. So actually a quick yes or no type of answer would be
> fine with me.

  Yes. :-)

> I am in the process at building test suites for my rsyslog project.
> This is a GPLv3 syslogd replacement. Almost all tests involve running
> a server instance of the daemon, running some other tool to send data
> to it, shut down the daemon and examine logs. For some test cases, it
> would also be useful to start up two different instances of the daemon
> plus an additional tool and check if inter-daemon traffic is correctly
> handled. The instances need not run on different machines (it is a
> plus if that's possible, but I'll probably limit my test cases to a
> single machine at first - I am happy if I can come that far...).

  From within the test driver that runs your test cases you can "spawn"
multiple programs, and control all of them from the same place. This has
been used many times over the years for network testing. Samba uses it,
and I'm using this technique now for testing Cygnal, the video server
side of the Gnash project.

        - rob -


_______________________________________________
DejaGnu mailing list
DejaGnu@...
http://lists.gnu.org/mailman/listinfo/dejagnu