Hi !!

               All of us know that the Testing Folder is used to run testcases for net-snmp testing . The ./RUNTESTS (which is used to init the testcases and interactively pick it) has the options :

[EMAIL PROTECTED] testing]$ ./RUNTESTS -h

Usage: RUNTESTS [-a] [-S SLEEPTIME] [-h] [-i] [-v] [-V] [-s] [-XM]
       [-T TESTNUMS] [-D bindir] [-S seconds] [-P <udp|tcp|udp6|tcp6|unix>]

  -a        run all tests.
  -T       NUMS   run particular tests (command separated list of numbers)
  -i        run interactively
  -v        be verbose
  -V        be very verbose
  -S       TIME   TIME should be used as the timeout when waiting for a
            response from the agent.
  -A       FLAGS  Extra flags to pass to the agent.
  -t         FLAGS  Extra flags to pass to the trapd.
  -s       Don't erase the runtime data directory for successful tests
  -XM   Don't set MIBDIRS environment unless absolutely necessary
  -x        Turn on SH output debugging for tests.
  -P       TRANS  Specify on which transport domain to run the tests.Default is udp.
  -p prefix Specify test case prefix. Options are [T|V]. Default is T


      Here the option ,  -i  is used to interactively pick the testcase and also do a confirmation from the user whether he needs to really run the script after the input given (TC ID)

       But , when you run the RUNTESTS with the  -i option  , it doesn't execute the testcase or any testing ... It simple exits.

      There has been a check for the TestCase to load up the TestScript (from the user pick the TC ID) :

     #
    306     # TODO: allow user to interactively pick the list of tests to run.
    307     #
    308
    309     #if [ "x$interactive" != "xyes" ]; then                    <----  Doing a validation check for non-interactiveness (without -i option check) but fails when -i option is given , so the whole testcase pick up fails
    310         if [ "x$test_nums" = "x" ]; then
    311             ECHO "Enter test numbers [all]: "
    312             read inp
    313         else
    314             if [ "x$test_nums" = "xall" ]; then
    315                 inp=""
    316             else
    317                 inp="$test_nums"
    318             fi
    319         fi
    320         if [ "x$inp" = "x" ]; then
    321             do_tests="$all_files"
    322         else
    323             a=1
    324             set $all_files
    325             while [ $a -le $num ]; do
    326                 if echo " $inp " | grep " $a " > /dev/null; then
    327                     do_tests="$do_tests $1"
    328                     if [ "x$test_nums" = "x" ] ; then
    329                         test_nums=$a
    330                     fi
    331                 fi
    332                 shift
    333                 a=`expr $a + 1`
    334             done
    335         fi
    336     fi
    337
    338     #echo Starting: Running tests $do_tests
    339 #fi                                                 <----  Taken out the if condition
    340
    341 #
    342 # Run the tests
    343 #

               

Hope this solves the problem , this RUNTESTS is for release 5.3  (net-snmp-5.3) .. haven't  checked for Net-SNMP  5.4

Note : Needed further responses on this issue . Thanks



***********************  FSS-Unclassified   ***********************
"DISCLAIMER: This message is proprietary to Flextronics Software Systems (FSS) and is intended solely for the use of 
the individual to whom it is addressed. It may contain privileged or confidential information and should not be 
circulated or used for any purpose other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of this message. FSS accepts no responsibility for 
loss or damage arising from the use of the information transmitted by this email including damage from virus."
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to