summaryrefslogtreecommitdiffhomepage
path: root/test/run.py
blob: 01765249b8330952473aad182d3ae90728c654d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import unittest
import sys
import os

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 = not runner.run(suite).wasSuccessful()
sys.exit(result)