コード例 #1
0
ファイル: torture_test.py プロジェクト: bbmjja8123/chromium-1
def setup_buildbot_context(context):
  context['platform'] = buildbot_lib.GetHostPlatform()
  context['mode'] = ('opt-host', 'nacl')
  context['clang'] = False
  context['asan'] = False
  context['use_glibc'] = False
  context['max_jobs'] = int(os.environ.get('PNACL_CONCURRENCY', 4))
コード例 #2
0
parser.add_argument('--tests-arch', choices=['x86-32', 'x86-64'],
                    default='x86-64',
                    help='Host architecture for tests in buildbot_pnacl.sh')
parser.add_argument('--skip-tests', action='store_true',
                    help='Skip running tests after toolchain built')
# Note: LLVM's tablegen doesn't run when built with the memory sanitizer.
# TODO(kschimp): Add thread, memory, and undefined sanitizers once bugs fixed.
parser.add_argument('--sanitize', choices=['address'
                                           #, 'thread', 'memory', 'undefined'
                                          ],
                    help='Build with corresponding sanitizer')
parser.add_argument('--no-goma', action='store_true', default=False,
                    help='Do not run with goma')
args = parser.parse_args()

host_os = buildbot_lib.GetHostPlatform()

if args.sanitize:
  if host_os != 'linux' or args.tests_arch != 'x86-64':
    raise Exception("Error: Can't run sanitize bot unless linux x86-64")

# This is a minimal context, not useful for running tests yet, but enough for
# basic Step handling.
context = buildbot_lib.BuildContext()
buildbot_lib.SetDefaultContextAttributes(context)
context['pnacl'] = True
status = buildbot_lib.BuildStatus(context)

toolchain_install_dir = os.path.join(
    NACL_DIR,
    'toolchain',