summaryrefslogtreecommitdiff
path: root/sim/src/onetest.py
blob: f6f661d5bd394ffc13129d75ac001bd5021c4125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
# Copyright 2005-2006 Nanorex, Inc.  See LICENSE file for details.

# usage:
#
# onetest.py <test_name> [args for tests.py]
#
# runs a single regression test by name
#

import sys
import tests

class Main(tests.Main):
    def main(self, args):
        self.theTest = args[0]
        tests.Main.main(self, args[1:])

    def getCasenames(self):
        return [
            self.theTest
            ]


if __name__ == "__main__":
    Main().main(sys.argv[1:])