def CompileLLVMTortureBinaryen(name, em_config, outdir, fails): buildbot.Step(name) os.environ['EM_CONFIG'] = em_config c = os.path.join(INSTALL_DIR, 'bin', 'emscripten', 'emcc') cxx = os.path.join(INSTALL_DIR, 'bin', 'emscripten', 'em++') Remove(outdir) Mkdir(outdir) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, fails=fails, out=outdir, config='binaryen') if 0 != unexpected_result_count: buildbot.Fail(True) return outdir
def CompileLLVMTorture(): name = 'Compile LLVM Torture' buildbot.Step(name) c = os.path.join(INSTALL_BIN, 'clang') cxx = os.path.join(INSTALL_BIN, 'clang++') Remove(TORTURE_S_OUT_DIR) Mkdir(TORTURE_S_OUT_DIR) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, fails=LLVM_KNOWN_TORTURE_FAILURES, out=TORTURE_S_OUT_DIR) Archive('torture-c', Tar(GCC_TEST_DIR)) Archive('torture-s', Tar(TORTURE_S_OUT_DIR)) if 0 != unexpected_result_count: buildbot.Fail()
def CompileLLVMTorture(outdir, opt): name = 'Compile LLVM Torture (%s)' % (opt) buildbot.Step(name) c = Executable(os.path.join(HOST_BIN, 'clang')) cxx = Executable(os.path.join(HOST_BIN, 'clang++')) Remove(outdir) Mkdir(outdir) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, sysroot_dir=SYSROOT_DIR, fails=LLVM_KNOWN_TORTURE_FAILURES, out=outdir, config='wasm-o', opt=opt) if 0 != unexpected_result_count: buildbot.Fail()
def CompileLLVMTorture(): name = 'Compile LLVM Torture' buildbot.Step(name) c = os.path.join(INSTALL_BIN, 'clang') cxx = os.path.join(INSTALL_BIN, 'clang++') Remove(TORTURE_S_OUT_DIR) Mkdir(TORTURE_S_OUT_DIR) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, sysroot_dir=INSTALL_SYSROOT, fails=LLVM_KNOWN_TORTURE_FAILURES, out=TORTURE_S_OUT_DIR) Archive('torture-c', Tar(GCC_TEST_DIR)) Archive('torture-s', Tar(TORTURE_S_OUT_DIR)) if 0 != unexpected_result_count: buildbot.Fail()
def CompileLLVMTortureBinaryen(name, em_config, outdir, fails): buildbot.Step('Compile LLVM Torture (%s)' % name) os.environ['EM_CONFIG'] = em_config c = os.path.join(INSTALL_DIR, 'emscripten', 'emcc') cxx = os.path.join(INSTALL_DIR, 'emscripten', 'em++') Remove(outdir) Mkdir(outdir) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, sysroot_dir=INSTALL_SYSROOT, fails=fails, out=outdir, config='binaryen-native') Archive('torture-' + name, Tar(outdir)) if 0 != unexpected_result_count: buildbot.Fail() return outdir
def CompileLLVMTortureBinaryen(name, em_config, outdir, fails): buildbot.Step(name) os.environ['EM_CONFIG'] = em_config c = os.path.join(INSTALL_DIR, 'bin', 'emscripten', 'emcc') cxx = os.path.join(INSTALL_DIR, 'bin', 'emscripten', 'em++') Remove(outdir) Mkdir(outdir) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, sysroot_dir=INSTALL_SYSROOT, fails=fails, out=outdir, config='binaryen-interpret') Archive('torture-' + em_config, Tar(outdir)) if 0 != unexpected_result_count: buildbot.Fail() return outdir
def CompileLLVMTortureAsm2Wasm(): name = 'Compile LLVM Torture (asm2wasm)' buildbot.Step(name) if 'EM_CONFIG' not in os.environ: print >> sys.stderr, ( "WARNING: not using waterfall's emscripten config file!") c = os.path.join(INSTALL_DIR, 'bin', 'emscripten', 'emcc') cxx = os.path.join(INSTALL_DIR, 'bin', 'emscripten', 'em++') Remove(ASM2WASM_TORTURE_S_OUT_DIR) Mkdir(ASM2WASM_TORTURE_S_OUT_DIR) unexpected_result_count = compile_torture_tests.run( c=c, cxx=cxx, testsuite=GCC_TEST_DIR, fails=ASM2WASM_KNOWN_TORTURE_COMPILE_FAILURES, out=ASM2WASM_TORTURE_S_OUT_DIR, config='asm2wasm') if 0 != unexpected_result_count: buildbot.Fail(True) return ASM2WASM_TORTURE_S_OUT_DIR