mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 17:52:17 +00:00
18 lines
479 B
Python
18 lines
479 B
Python
#!/usr/bin/python
|
|
|
|
import sys
|
|
sys.path.append('../src/Pyste')
|
|
import unittest
|
|
import os.path
|
|
from glob import glob
|
|
|
|
if __name__ == '__main__':
|
|
loader = unittest.defaultTestLoader
|
|
tests = []
|
|
for name in glob('*UT.py'):
|
|
module = __import__(os.path.splitext(name)[0])
|
|
tests.append(loader.loadTestsFromModule(module))
|
|
runner = unittest.TextTestRunner()
|
|
result = runner.run(unittest.TestSuite(tests))
|
|
sys.exit(not result.wasSuccessful())
|