1#!/usr/bin/env python 2 3import sys 4sys.path[0:0] = ['.', '..'] 5 6import unittest 7 8 9suite = unittest.TestLoader().loadTestsFromNames( 10 [ 11 'test_c_lexer', 12 'test_c_ast', 13 'test_general', 14 'test_c_parser', 15 'test_c_generator', 16 ] 17) 18 19testresult = unittest.TextTestRunner(verbosity=1).run(suite) 20sys.exit(0 if testresult.wasSuccessful() else 1) 21