regression/tests/test-udp-echo.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 19 Nov 2008 17:17:07 +0000
changeset 3872 8e757a83fb36
parent 3676 62e8f20e7e8d
child 4114 a6c5ccfa3451
permissions -rw-r--r--
Add a --with-regression-traces configure option, to allow using externally supplied regression traces instead of fetching them from the network.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2849
fe96c0d98484 some tests and known traces
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     1
#! /usr/bin/env python
fe96c0d98484 some tests and known traces
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."""
2849
fe96c0d98484 some tests and known traces
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     4
fe96c0d98484 some tests and known traces
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
2849
fe96c0d98484 some tests and known traces
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: 3676
diff changeset
     9
def run(verbose, generate):
2849
fe96c0d98484 some tests and known traces
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    10
    """Execute a test."""
3676
62e8f20e7e8d Make the WAF env available to regression tests
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 2863
diff changeset
    11
    #print tracediff.env
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: 3676
diff changeset
    12
    return tracediff.run_test(verbose, generate, "udp-echo")