You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
379 B
21 lines
379 B
#!/usr/bin/env python
|
|
|
|
import sys
|
|
sys.path[0:0] = ['.', '..']
|
|
|
|
import unittest
|
|
|
|
|
|
suite = unittest.TestLoader().loadTestsFromNames(
|
|
[
|
|
'test_c_lexer',
|
|
'test_c_ast',
|
|
'test_general',
|
|
'test_c_parser',
|
|
'test_c_generator',
|
|
]
|
|
)
|
|
|
|
testresult = unittest.TextTestRunner(verbosity=1).run(suite)
|
|
sys.exit(0 if testresult.wasSuccessful() else 1)
|