[Ns-developers] regression testing and native win32 (mingw)

Gustavo Carneiro gjcarneiro at gmail.com
Wed Sep 10 03:14:58 PDT 2008


2008/9/10 Mathieu Lacage <mathieu.lacage at sophia.inria.fr>

> On Wed, 2008-09-10 at 01:16 +0100, Gustavo Carneiro wrote:
> > I know this is not a priority right now, just bear with me.
> >
> > Currently all mingw regression tests fail:
> >
> >   1. Ascii traces differ: this is due to an extra carriage return
> generated
> > from win32 and not available in the reference traces.  The diff option
> > --strip-trailing-cr takes care of it and then the files match (or at
> least
> > the one I tested manually).  Unfortunately that option is not always
> > available; the msys diff command doesn't have it.  What is it better,
> avoid
> > std::endl when generating ascii traces (use plain old \n instead), or
> work
> > around it when comparing the files?  The issue is raised, solution may
> come
> > later;
>
> Since this is windows, all you have to do is setup mercurial's win32
> filters to do the unix<->windows conversion automatically. I suspect
> that if you use the mercurial tortoisehg binary, it might even be setup
> for you already.


I installed tortoisehg and cannot even clone the reference traces:

hg clone http://code.nsnam.org/ns-3-dev-ref-traces ns-3-dev-ref-traces
requesting all changes
adding changesets
adding manifests
adding file changes
added 41 changesets with 266 changes to 65 files
abort: integrity check failed on 00changelog.d:0!

haha, so at least looks like we're not alone in win32 portability problems
:-)


>
>
> >   2. pcap files also differ.  The pcap files generated in win32 do not
> open
> > in either Linux or win32 Wireshark: "The capture file appears to be
> damaged
> > or corrupt.
> > (pcap: File has 36569088-byte packet, bigger than maximum of 65535)".  I
> > uploaded [1]the win32 version in case anyone wants to take a look; but no
> > pressure.. :-)
> > [1] http://telecom.inescporto.pt/~gjc/csma-broadcast-0-0.pcap<http://telecom.inescporto.pt/%7Egjc/csma-broadcast-0-0.pcap>
>
> Can you file a bug ? This does indeed sound like a real issue.


Done (#329).


>
>
> Mathieu
>
>
>


-- 
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