2016-10-16 18:06:27 +03:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# vim:fileencoding=utf-8
|
|
|
|
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
|
|
|
|
|
2021-02-19 12:49:04 +03:00
|
|
|
import importlib
|
2016-10-16 18:06:27 +03:00
|
|
|
import os
|
|
|
|
import sys
|
2021-06-26 10:25:53 +03:00
|
|
|
import warnings
|
2016-10-16 18:06:27 +03:00
|
|
|
|
|
|
|
base = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
|
|
|
2020-03-08 12:09:46 +03:00
|
|
|
def init_env() -> None:
|
2016-10-16 18:06:27 +03:00
|
|
|
sys.path.insert(0, base)
|
|
|
|
|
|
|
|
|
2020-03-12 11:56:51 +03:00
|
|
|
def main() -> None:
|
2021-06-26 10:25:53 +03:00
|
|
|
warnings.simplefilter('error')
|
|
|
|
os.environ['PYTHONWARNINGS'] = 'error'
|
2021-02-19 12:05:25 +03:00
|
|
|
init_env()
|
2021-02-19 12:49:04 +03:00
|
|
|
m = importlib.import_module('kitty_tests.main')
|
|
|
|
m.run_tests() # type: ignore
|
2016-11-07 10:53:03 +03:00
|
|
|
|
2017-01-09 08:40:41 +03:00
|
|
|
|
2016-10-16 18:06:27 +03:00
|
|
|
if __name__ == '__main__':
|
2016-11-07 10:53:03 +03:00
|
|
|
main()
|