regression/tests/test-ns2-mob.py
author Tom Henderson <tomh@tomh.org>
Thu, 02 Jul 2009 21:57:00 -0700
changeset 4646 c25ca2e38845
parent 4114 a6c5ccfa3451
permissions -rw-r--r--
some fixes to the manual for IPv4 refactoring
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3924
1a216c2ee391 regression test for ns2 mobility file helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     1
#! /usr/bin/env python
1a216c2ee391 regression test for ns2 mobility file helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     2
1a216c2ee391 regression test for ns2 mobility file helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     3
"""Generic trace-comparison-type regression test."""
1a216c2ee391 regression test for ns2 mobility file helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     4
4114
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
     5
import os.path
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
     6
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
     7
program = "main-ns2-mob"
3924
1a216c2ee391 regression test for ns2 mobility file helper
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     8
4114
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
     9
def get_arguments(env, top_dir):
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
    10
    ns2_tracefile = os.path.abspath(os.path.join(top_dir, "samples", "ns2-mob.tr"))
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
    11
    return [ns2_tracefile, "out.tr"]
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
    12
a6c5ccfa3451 Run regression tests as WAF tasks, plus simplify how unit tests are declared. Closes #480.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3924
diff changeset
    13
trace_dir_name = "main-ns2-mob.ref"