コード例 #1
0
ファイル: build.py プロジェクト: eholk/waterfall
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
コード例 #2
0
ファイル: build.py プロジェクト: jgravelle-google/waterfall
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()
コード例 #3
0
ファイル: build.py プロジェクト: elewis787/Wavix
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()
コード例 #4
0
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()
コード例 #5
0
ファイル: build.py プロジェクト: WebAssembly/waterfall
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
コード例 #6
0
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
コード例 #7
0
ファイル: build.py プロジェクト: webassemblyjs/waterfall
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