#NEWLINE# def run_tests( suite = None , xmloutput = None , verbosity = 1 ) : #NEWLINE# #INDENT# '\n    args\n    ----\n    - suite [TestSuite]\n        A suite of all tests to run\n    - xmloutput [str or None]\n        Path of XML output directory (optional)\n    - verbosity [int]\n        Verbosity level of tests output\n\n    Returns the TestResult object after running the test *suite*.\n    ' #NEWLINE# if ( suite is None ) : #NEWLINE# #INDENT# suite = discover_tests ( 'llvmlite.tests' ) #NEWLINE# #UNINDENT# if ( xmloutput is not None ) : #NEWLINE# #INDENT# import xmlrunner #NEWLINE# runner = xmlrunner . XMLTestRunner ( output = xmloutput ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# runner = None #NEWLINE# #UNINDENT# prog = unittest . main ( suite = suite , testRunner = runner , exit = False , verbosity = verbosity ) #NEWLINE# return prog . result