def testLLVMImage(image, imageArgs=None, testFilter=None, libPath=True, test=None, unittestArgs=None): """runs the SulongSuite tests on an AOT compiled lli image""" args = ['-Dsulongtest.testAOTImage=' + image] aotArgs = [] if libPath: aotArgs += [mx_subst.path_substitutions.substitute('<sulong_home>')] if imageArgs is not None: aotArgs += imageArgs if aotArgs: args += ['-Dsulongtest.testAOTArgs=' + ' '.join(aotArgs)] if testFilter is not None: args += ['-Dsulongtest.testFilter=' + testFilter] testName = 'SulongSuite' if test is not None: testName += '#test[' + test + ']' if unittestArgs is None: unittestArgs = [] test_suite = 'SULONG_STANDALONE_TEST_SUITES' mx_sulong_suite_constituents.compileTestSuite(test_suite, extra_build_args=[]) mx_sulong_suite_constituents.run(args + unittestArgs, testName)
def _run_test_task(tasks): with Task('Test' + title, tasks, tags=tags + run_tags, description=description) as t: if t: mx_sulong_suite_constituents.run(unittestArgs, testClasses)