[Ns-developers] regression testing and native win32 (mingw)
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
> > 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
> > the one I tested manually). Unfortunately that option is not always
> > available; the msys diff command doesn't have it. What is it better,
> > std::endl when generating ascii traces (use plain old \n instead), or
> > around it when comparing the files? The issue is raised, solution may
> > 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 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
> > in either Linux or win32 Wireshark: "The capture file appears to be
> > or corrupt.
> > (pcap: File has 36569088-byte packet, bigger than maximum of 65535)". I
> > uploaded the win32 version in case anyone wants to take a look; but no
> > pressure.. :-)
> >  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.
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