summaryrefslogblamecommitdiffhomepage
path: root/test/run.py
blob: b79d04842979f4a7fd2e9396ad0f25c6a342fbcb (plain) (tree)
1
2
3
4
5
6
7
8
9
                      

               
          

         


                                  
 


                                               
 

                                                 
 
                                                               
 
                 
#!/usr/bin/env python3

import unittest
import sys
import os

if __name__ == '__main__':
    loader = unittest.TestLoader()
    suite  = unittest.TestSuite()

    this_dir = os.path.dirname(__file__)
    tests = loader.discover(start_dir=this_dir)
    suite.addTests(tests)

    runner = unittest.TextTestRunner(verbosity=3)
    result = runner.run(suite)

    ret = not (len(result.failures) == len(result.errors) == 0)

    sys.exit(ret)