Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/pyste/tests/runtests.py @ 45

Last change on this file since 45 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 709 bytes
Line 
1# Copyright Bruno da Silva de Oliveira 2003. Use, modification and
2# distribution is subject to the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE_1_0.txt or copy at
4# http:#www.boost.org/LICENSE_1_0.txt)
5#!/usr/bin/python
6
7import sys
8sys.path.append('../src/Pyste') 
9import unittest
10import os.path
11from glob import glob
12
13if __name__ == '__main__':
14    loader = unittest.defaultTestLoader
15    tests = []
16    for name in glob('*UT.py'):
17        module = __import__(os.path.splitext(name)[0])
18        tests.append(loader.loadTestsFromModule(module))
19    runner = unittest.TextTestRunner()
20    result = runner.run(unittest.TestSuite(tests))
21    sys.exit(not result.wasSuccessful())   
Note: See TracBrowser for help on using the repository browser.