[Ns-developers] Ns-3 Regression Testing Pushed

Gustavo Carneiro gjcarneiro at gmail.com
Thu Apr 3 06:42:18 PDT 2008


On 03/04/2008, Tom Henderson <tomh at tomh.org> wrote:
>
> craigdo at ee.washington.edu wrote:
>
> > Okay folks, the regression tests are pushed to ns-3-dev.
> >
> > This means that before you check something in, you should change into
> > the
> > regression directory and run the regression tests using,
> >
> >  python regression.py
> >
> > and make sure nothing got busted.  You also might want to run this
> > *before*
> > you make a change so you don't end up debugging someone else's
> > regression
> > :-)
> >
> >
> Craig, sorry for the late comments, can you make a few enhancements?
>
> - we discussed running the tests under valgrind (if valgrind is available
> on the system).  --command-template="valgrind --leak-check=full"
>
> If valgrind is not found, it might help to print out a one-line debug
> statement that "valgrind not found on this system; running checks without
> it" as a hint to users that they may want to install it.
>
> - it seems that if one runs regression.py on an unbuilt, freshly checked
> out repository, the script dies during configure, which ought to be fixed (I
> tried this on ns-regression)


I think the above items would benefit from a stronger integration of
regression with WAF.  For instance, we could do "./waf check --regression",
or "./waf check --regression --valgrind".  To do so, we might needo to
incoporate the code from regression/regression.py into the main wscript, or
import it.  If you want this, I can volunteer to do it.

- also, I think it would be preferable by default if things were rerun with
> optimized build.  Maybe if debug build passes all tests, repeat with
> optimized build?


This would be rather hard with my proposal of integrating with WAF, but a
simple shell script could take care of it: { ./waf configure -d debug &&
./waf check --regression; } && {./waf configure -d optimized && ./waf check
--regression;}.

- could the script catch a control-c and exit immediately?
>
> - it would be nice if the output were teed to a file such as
> regression/regression.out, and maybe just append the output of the unix date
> command at the top of the file
>
> Thanks,
> Tom
>



-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list