[Ns-developers] improving regression tests of ns-3

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Wed Mar 19 17:08:46 PDT 2008


On Wed, 2008-03-19 at 23:39 +0000, Gustavo Carneiro wrote:

> 
> In src/internet-node/udp-socket.cc you will find already some unit
> tests of higher layers, UDP sockets in this case.  I implemented it
> using PointToPointNetDevices connecting some nodes.  I think it works

yes, I know.

>  well, and to be honest I don't completely understand why a new
> special netdevice is needed just for unit testing.  I mean,
> PointToPointNetDevice is deterministic, so it should be more than
> enough for any kind of unit testing...

the problem is that the module 'internet-node' is not supposed to depend
on the 'point-to-point' module. Furthermore, for the sake of writing
tests, I would like to test only what I am interested in, not some other
random piece of code like PointToPointNetDevice. i.e., I would like to
isolate the different components of the system to avoid testing
unrelated pieces when I really want to test UdpSocket.

Mathieu




More information about the Ns-developers mailing list