[Ns-developers] Trace based regression tests
Pavel Boyko
boyko at iitp.ru
Mon Oct 19 04:57:23 PDT 2009
Hi,
I'm trying to write simple pcap based regression (aka system) test using new
framework. The only adequate example I have found is ns3tcp-interop-test-
suite.cc . It can operate in two modes -- write packet traces ("test vectors")
or compare actual transmitted packets (sniffed at IP level) with given correct
traces. I like this. But this behavior is implemented "by hand", both packet
tracing and comparison are implemented in Ns3TcpInteroperabilityTestCase and
can not be reused by other tests. Also it happens that fancy PcapFile doesn't
know about old PcapWriter, used by my favorite *Helper::EnablePcapAll (). And
I want to use device level sniffer instead of IP level one.
Does anybody have any plans / ideas how to implement trace based regression
test behavior in reusable way? I can easily implement custom pcap diff for my
WiFi based tests, but problem looks general and deserves some general
solution.
Pavel
More information about the Ns-developers
mailing list