Re: test scripts for subagent

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 11/04/2008, Pranesh Kulkarni <[email protected]> wrote:
> My Question was can i use the scripts which are in
> $installdir/testing/RUNTESTS to test my subagent ,

RUNTESTS is simply the top-level driving script.
The tests themselves are under 'testing/tests'

Most of these are generate specific queries, and
compare the results received with the expected
values.    The only standard test that would potentially
touch your subagent would be T200snmpv2cwalkall
which walks the full tree.
  Though you might need to tweak the agent config
to have it load your subagent.  See the CONFIGAGENT
token.

For more focused testing of your subagent, you would
definitely need to write your own tests.

>  if any tutorial is there to writing test scripts to
> test the subagents will be helpful to me.

Nope - sorry.

Have a look at the existing tests under 'testing/tests'
The structure is pretty straightforward - particularly
if you start with the earlier tests.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.