regression/tests/test-csma-one-subnet.py
author craigdo@craig-dowells-imac.local
Thu, 28 Aug 2008 15:06:49 -0700
changeset 3564 92ef80f0352e
parent 2863 0bcad16fc46b
child 3872 8e757a83fb36
permissions -rw-r--r--
don't assume posix compatibility means posix clocks
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2846
7689461231ac start of regression tests
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     1
#! /usr/bin/env python
7689461231ac start of regression tests
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     2
2855
e1063ecd1585 move reference traces out of main repo
Craig Dowell <craigdo@ee.washington.edu>
parents: 2849
diff changeset
     3
"""Generic trace-comparison-type regression test."""
2846
7689461231ac start of regression tests
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     4
7689461231ac start of regression tests
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     5
import os
2855
e1063ecd1585 move reference traces out of main repo
Craig Dowell <craigdo@ee.washington.edu>
parents: 2849
diff changeset
     6
import shutil
2863
0bcad16fc46b address some list comments
Craig Dowell <craigdo@ee.washington.edu>
parents: 2856
diff changeset
     7
import tracediff
2847
f0aedbbb037b trace generation and comparison
Craig Dowell <craigdo@ee.washington.edu>
parents: 2846
diff changeset
     8
2863
0bcad16fc46b address some list comments
Craig Dowell <craigdo@ee.washington.edu>
parents: 2856
diff changeset
     9
def run(verbose, generate, refDirName):
2846
7689461231ac start of regression tests
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    10
    """Execute a test."""
2847
f0aedbbb037b trace generation and comparison
Craig Dowell <craigdo@ee.washington.edu>
parents: 2846
diff changeset
    11
2863
0bcad16fc46b address some list comments
Craig Dowell <craigdo@ee.washington.edu>
parents: 2856
diff changeset
    12
    return tracediff.run_test(verbose, generate, refDirName, "csma-one-subnet")