Esempio n. 1
0
  def RunTest(test, toolchain, config, arch=None):
    args = ['STANDALONE=1', 'TOOLCHAIN=%s' % toolchain]
    if arch is not None:
      args.append('NACL_ARCH=%s' % arch)
    deps = False

    if sanitizer is not None:
      # For sanitizer builds we pass extra argument for make, and do
      # full clean build to make sure everything is rebuilt with the
      # correct flags
      deps = True
      if sanitizer == 'valgrind':
        args += ['RUN_UNDER=valgrind']
      else:
        args += ['CC=clang', 'CXX=clang++',
                 'LDFLAGS=-pie -fsanitize=' + sanitizer,
                 'CFLAGS=-fPIC -fsanitize=' + sanitizer]
      build_projects.BuildProjectsBranch(pepperdir, 'src', clean=False,
                                         deps=deps, config=config,
                                         args=args + ['clean'])
      build_projects.BuildProjectsBranch(pepperdir, 'tests', clean=False,
                                         deps=deps, config=config,
                                         args=args + ['clean'])

    build_projects.BuildProjectsBranch(pepperdir, test, clean=False,
                                       deps=deps, config=config,
                                       args=args + ['run'])
Esempio n. 2
0
  def RunTest(test, toolchain, config, arch=None):
    args = ['STANDALONE=1', 'TOOLCHAIN=%s' % toolchain]
    args += GetSanitizerArgs(sanitizer)
    if arch is not None:
      args.append('NACL_ARCH=%s' % arch)

    build_projects.BuildProjectsBranch(pepperdir, test, clean=False,
                                       deps=False, config=config,
                                       args=args + ['run'])
 def RunTest(test, toolchain, arch, config):
     args = ['TOOLCHAIN=%s' % toolchain, 'NACL_ARCH=%s' % arch]
     args += ['SEL_LDR=1', 'run']
     build_projects.BuildProjectsBranch(pepperdir,
                                        test,
                                        clean=False,
                                        deps=False,
                                        config=config,
                                        args=args)
def BuildStepMakeAll(pepperdir,
                     directory,
                     step_name,
                     deps=True,
                     clean=False,
                     config='Debug',
                     args=None):
    buildbot_common.BuildStep(step_name)
    build_projects.BuildProjectsBranch(pepperdir, directory, clean, deps,
                                       config, args)
Esempio n. 5
0
def BuildAllTestsInTree(tree, toolchains, configs):
  for branch, desc in parse_dsc.GenerateProjects(tree):
    desc_configs = desc.get('CONFIGS', ALL_CONFIGS)
    valid_toolchains = set(toolchains) & set(desc['TOOLS'])
    valid_configs = set(configs) & set(desc_configs)
    for toolchain in sorted(valid_toolchains):
      for config in sorted(valid_configs):
        name = '%s/%s' % (branch, desc['NAME'])
        build_projects.BuildProjectsBranch(pepperdir, name, deps=False,
                                           clean=False, config=config,
                                           args=['TOOLCHAIN=%s' % toolchain])
Esempio n. 6
0
  def RunTest(test, toolchain, config, arch=None):
    args = ['STANDALONE=1', 'TOOLCHAIN=%s' % toolchain]
    if arch is not None:
      args.append('NACL_ARCH=%s' % arch)
    deps = False

    if sanitizer is not None:
      # For sanitizer builds we pass extra argument for make, and do
      # full clean build to make sure everything is rebuilt with the
      # correct flags
      deps = True
      if sanitizer == 'valgrind':
        args += ['RUN_UNDER=valgrind']
      elif sanitizer == 'address':
        args += ['ASAN=1']
      elif sanitizer == 'thread':
        args += ['TSAN=1']

    build_projects.BuildProjectsBranch(pepperdir, test, clean=False,
                                       deps=deps, config=config,
                                       args=args + ['run'])