regression/tests/test-wifi-wired-bridging.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 15 Sep 2008 11:45:32 +0100
changeset 3697 97c84e70a7db
parent 3621 378795604085
child 3872 8e757a83fb36
permissions -rw-r--r--
Add python based csma-bridge regression test. Closes #344.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3621
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     1
#! /usr/bin/env python
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     2
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     3
"""Compare that Wifi-Wired Bridging generates correct traces."""
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     4
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     5
import os
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     6
import shutil
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     7
import tracediff
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     8
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     9
def run(verbose, generate, refDirName):
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    10
    """Execute a test."""
378795604085 forgot to add test file
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    11
3697
97c84e70a7db Add python based csma-bridge regression test. Closes #344.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3621
diff changeset
    12
    return tracediff.run_test(verbose, generate, refDirName, "wifi-wired-bridging", ["--SendIp=0"])