forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.py
47 lines (41 loc) · 1.75 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import sys
import typing
from mypy.myunit import Suite, run_test
from mypy.test import testtypes
from mypy.test import testsubtypes
from mypy.test import testsolve
from mypy.test import testinfer
from mypy.test import testlex
from mypy.test import testparse
from mypy.test import testsemanal
from mypy.test import testtransform
from mypy.test import testcheck
from mypy.test import testtypegen
from mypy.test import testoutput
from mypy.test import testdyncheck
from mypy.test import testicodegen
class AllSuite(Suite):
def __init__(self):
self.test_types = testtypes.TypesSuite()
self.test_typeops = testtypes.TypeOpsSuite()
self.test_join = testtypes.JoinSuite()
self.test_meet = testtypes.MeetSuite()
self.test_subtypes = testsubtypes.SubtypingSuite()
self.test_solve = testsolve.SolveSuite()
self.test_infer = testinfer.MapActualsToFormalsSuite()
self.test_lex = testlex.LexerSuite()
self.test_parse = testparse.ParserSuite()
self.test_parse_errors = testparse.ParseErrorSuite()
self.test_semanal = testsemanal.SemAnalSuite()
self.test_semanal_errors = testsemanal.SemAnalErrorSuite()
self.test_semanal_symtable = testsemanal.SemAnalSymtableSuite()
self.test_semanal_typeinfos = testsemanal.SemAnalTypeInfoSuite()
self.test_transform = testtransform.TransformSuite()
self.test_check = testcheck.TypeCheckSuite()
self.test_typegen = testtypegen.TypeExportSuite()
self.test_output = testoutput.OutputSuite()
self.test_dyncheck = testdyncheck.DyncheckTransformSuite()
self.test_icodegen = testicodegen.IcodeGenerationSuite()
super().__init__()
if __name__ == '__main__':
run_test(AllSuite(), sys.argv[1:])