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

Gustavo Carneiro gjcarneiro at gmail.com
Tue Sep 9 17:16:07 PDT 2008


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;

  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

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