Ignore:
Timestamp:
08/12/06 14:49:47 (14 years ago)
Author:
spascoe
Message:

Script hook into the test_suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI03-DataExtractor/branches/repackaging/server/ndg/dx/server/test/__init__.py

    r1844 r1848  
    3232test_suite = unittest.TestSuite() 
    3333test_suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestCase)) 
     34 
     35def main(args=None): 
     36    """Script entry point that runs test_case. 
     37    """ 
     38    if not args: 
     39        args = sys.argv[1:] 
     40 
     41    if args: 
     42        (test_home,) = args 
     43    else: 
     44        test_home = './test_home' 
     45 
     46    from ndg.dx.server.MakeConfig import makeTestHome 
     47    makeTestHome(test_home) 
     48         
     49    tr = unittest.TextTestRunner() 
     50    tr.run(test_suite) 
     51 
     52if __name__ == '__main__': 
     53    main() 
Note: See TracChangeset for help on using the changeset viewer.