regression/tests/test-simple-error-model.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 10 Dec 2008 01:34:04 -0800
changeset 4002 a12900ea255e
parent 3872 8e757a83fb36
child 4114 a6c5ccfa3451
permissions -rw-r--r--
rescan python
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2861
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     1
#! /usr/bin/env python
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     2
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     3
"""Generic trace-comparison-type regression test."""
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     4
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     5
import os
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     6
import shutil
2863
0bcad16fc46b address some list comments
Craig Dowell <craigdo@ee.washington.edu>
parents: 2861
diff changeset
     7
import tracediff
2861
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     8
3872
8e757a83fb36 Add a --with-regression-traces configure option, to allow using externally supplied regression traces instead of fetching them from the network.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 2863
diff changeset
     9
def run(verbose, generate):
2861
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    10
    """Execute a test."""
18930dcd33e0 test test
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    11
3872
8e757a83fb36 Add a --with-regression-traces configure option, to allow using externally supplied regression traces instead of fetching them from the network.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 2863
diff changeset
    12
    return tracediff.run_test(verbose, generate,
2863
0bcad16fc46b address some list comments
Craig Dowell <craigdo@ee.washington.edu>
parents: 2861
diff changeset
    13
        "simple-error-model")