def travis2(args=None): """executes the third Travis job (Javac build, NWCC, GCC compilation test cases)""" tasks = [] with Task('BuildJavaWithJavac', tasks) as t: if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac', '--dependencies', 'SULONG_TEST']) with Task('TestNWCC', tasks) as t: if t: mx_testsuites.runSuite(['nwcc']) with Task('TestGCCSuiteCompile', tasks) as t: if t: mx_testsuites.runSuite(['parserTorture'])
def travis1(args=None): """executes a Travis job""" tasks = [] with Task('BuildJavaWithJavac', tasks) as t: if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac', '--dependencies', 'SULONG_TEST']) with Task('TestBenchmarks', tasks) as t: if t: mx_testsuites.runSuite(['shootout']) with Task('TestPolglot', tasks) as t: if t: mx_testsuites.runSuite(['polyglot']) with Task('TestTypes', tasks) as t: if t: mx_testsuites.runSuite(['type']) with Task('TestPipe', tasks) as t: if t: mx_testsuites.runSuite(['pipe']) with Task('TestLLVM', tasks) as t: if t: mx_testsuites.runSuite(['llvm'])
def executeGate(): """executes the TruffleLLVM gate tasks""" tasks = [] with Task('BasicChecks', tasks) as t: if t: runChecks() mx_testsuites.runSuite()
def runTests(args=None): mx_testsuites.runSuite(args)
def _sulong_gate_runner(args, tasks): with Task('TestBenchmarks', tasks, tags=['benchmarks', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('shootout') with Task('TestTypes', tasks, tags=['type', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('type') with Task('TestPipe', tasks, tags=['pipe', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('pipe') with Task('TestLLVM', tasks, tags=['llvm']) as t: if t: mx_testsuites.runSuite('llvm') with Task('TestNWCC', tasks, tags=['nwcc']) as t: if t: mx_testsuites.runSuite('nwcc') with Task('TestGCCParserTorture', tasks, tags=['parser']) as t: if t: mx_testsuites.runSuite('parserTorture') with Task('TestGCC_C', tasks, tags=['gcc_c']) as t: if t: mx_testsuites.runSuite('gcc_c') with Task('TestGCC_CPP', tasks, tags=['gcc_cpp']) as t: if t: mx_testsuites.runSuite('gcc_cpp') with Task('TestGCC_Fortran', tasks, tags=['gcc_fortran']) as t: if t: mx_testsuites.runSuite('gcc_fortran') with Task("TestSulong", tasks, tags=['sulong', 'sulongBasic']) as t: if t: mx_unittest.unittest(['SulongSuite']) with Task("TestInterop", tasks, tags=['interop', 'sulongBasic']) as t: if t: mx_unittest.unittest(['LLVMInteropTest']) with Task('TestAssembly', tasks, tags=['assembly', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('assembly') with Task('TestArgs', tasks, tags=['args', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('args') with Task('TestCallback', tasks, tags=['callback', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('callback') with Task('TestVarargs', tasks, tags=['vaargs', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('vaargs')
def _sulong_gate_runner(args, tasks): with TemporaryEnv(): with Task('CheckCopyright', tasks, tags=['style']) as t: if t: if mx.checkcopyrights(['--primary']) != 0: t.abort('Copyright errors found. Please run "mx checkcopyrights --primary -- --fix" to fix them.') with Task('ClangFormat', tasks, tags=['style', 'clangformat']) as t: if t: clangformatcheck() with Task('TestBenchmarks', tasks, tags=['benchmarks', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('shootout') with Task('TestTypes', tasks, tags=['type', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('type') with Task('TestPipe', tasks, tags=['pipe', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('pipe') with Task('TestLLVM', tasks, tags=['llvm']) as t: if t: mx_testsuites.runSuite('llvm') with Task('TestNWCC', tasks, tags=['nwcc']) as t: if t: mx_testsuites.runSuite('nwcc') with Task('TestGCCParserTorture', tasks, tags=['parser']) as t: if t: mx_testsuites.runSuite('parserTorture') with Task('TestGCC_C', tasks, tags=['gcc_c']) as t: if t: mx_testsuites.runSuite('gcc_c') with Task('TestGCC_CPP', tasks, tags=['gcc_cpp']) as t: if t: mx_testsuites.runSuite('gcc_cpp') with Task('TestGCC_Fortran', tasks, tags=['gcc_fortran']) as t: if t: mx_testsuites.runSuite('gcc_fortran') with Task("TestSulong", tasks, tags=['sulong', 'sulongBasic']) as t: if t: mx_unittest.unittest(['SulongSuite']) with Task("TestInterop", tasks, tags=['interop', 'sulongBasic']) as t: if t: mx_unittest.unittest(['com.oracle.truffle.llvm.test.interop']) with Task("TestDebug", tasks, tags=['debug', 'sulongBasic']) as t: if t: mx_unittest.unittest(['LLVMDebugTest']) with Task("TestIRDebug", tasks, tags=['irdebug', 'sulongBasic']) as t: if t: mx_unittest.unittest(['LLVMIRDebugTest']) with Task('TestAssembly', tasks, tags=['assembly', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('assembly') with Task('TestArgs', tasks, tags=['args', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('args') with Task('TestCallback', tasks, tags=['callback', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('callback') with Task('TestVarargs', tasks, tags=['vaargs', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('vaargs')
def travis1(args=None): """executes the first Travis job (Javac build, benchmarks, polyglot, interop, tck, asm, types, and LLVM test cases)""" tasks = [] with Task('BuildJavaWithJavac', tasks) as t: if t: mx.command_function('build')( ['-p', '--warning-as-error', '--force-javac']) with Task('TestBenchmarks', tasks) as t: if t: mx_testsuites.runSuite(['shootout']) with Task('TestPolglot', tasks) as t: if t: mx_testsuites.runSuite(['polyglot']) with Task('TestInterop', tasks) as t: if t: mx_testsuites.runSuite(['interop']) with Task('TestTck', tasks) as t: if t: mx_testsuites.runSuite(['tck']) with Task('TestAsm', tasks) as t: if t: mx_testsuites.runSuite(['assembly']) with Task('TestTypes', tasks) as t: if t: mx_testsuites.runSuite(['type']) with Task('TestMainArgs', tasks) as t: if t: mx_testsuites.runSuite(['args']) with Task('TestCallback', tasks) as t: if t: mx_testsuites.runSuite(['callback']) with Task('TestPipe', tasks) as t: if t: mx_testsuites.runSuite(['pipe']) with Task('TestLLVM', tasks) as t: if t: mx_testsuites.runSuite(['llvm']) with Task('TestSulong', tasks) as t: if t: mx_testsuites.runSuite(['sulong'])
def _sulong_gate_runner(args, tasks): with Task('ClangFormat', tasks, tags=['style', 'clangformat']) as t: if t: clangformatcheck() with Task('TestBenchmarks', tasks, tags=['benchmarks', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('shootout') with Task('TestTypes', tasks, tags=['type', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('type') with Task('TestPipe', tasks, tags=['pipe', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('pipe') with Task('TestLLVM', tasks, tags=['llvm']) as t: if t: mx_testsuites.runSuite('llvm') with Task('TestNWCC', tasks, tags=['nwcc']) as t: if t: mx_testsuites.runSuite('nwcc') with Task('TestGCCParserTorture', tasks, tags=['parser']) as t: if t: mx_testsuites.runSuite('parserTorture') with Task('TestGCC_C', tasks, tags=['gcc_c']) as t: if t: mx_testsuites.runSuite('gcc_c') with Task('TestGCC_CPP', tasks, tags=['gcc_cpp']) as t: if t: mx_testsuites.runSuite('gcc_cpp') with Task('TestGCC_Fortran', tasks, tags=['gcc_fortran']) as t: if t: mx_testsuites.runSuite('gcc_fortran') with Task("TestSulong", tasks, tags=['sulong', 'sulongBasic']) as t: if t: mx_unittest.unittest(['SulongSuite']) with Task("TestInterop", tasks, tags=['interop', 'sulongBasic']) as t: if t: mx_unittest.unittest(['LLVMInteropTest']) with Task('TestAssembly', tasks, tags=['assembly', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('assembly') with Task('TestArgs', tasks, tags=['args', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('args') with Task('TestCallback', tasks, tags=['callback', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('callback') with Task('TestVarargs', tasks, tags=['vaargs', 'sulongMisc']) as t: if t: mx_testsuites.runSuite('vaargs')