Example #1
0
def prereqs_scons(context, platform):
    if not platform in ('x86-32', 'x86-64', 'arm'):
        raise ValueError('Bad platform,', platform)
    return buildbot_lib.SCons(context,
                              mode=('opt-host', 'nacl'),
                              platform=platform,
                              parallel=True,
                              args=('irt_core', 'run_intrinsics_test'))
Example #2
0
# Run checkdeps so that the PNaCl toolchain trybots catch mistakes that would
# cause the normal NaCl bots to fail.
with buildbot_lib.Step('checkdeps', status):
    buildbot_lib.Command(context, [
        sys.executable,
        os.path.join(NACL_DIR, 'tools', 'checkdeps', 'checkdeps.py')
    ])

# Test the pinned toolchain. Since we don't yet have main waterfall
# Windows or mac bots, we need to test the full assembled toolchain here.
if host_os == 'win' or host_os == 'mac' or not pynacl.platform.IsArch64Bit():
    with buildbot_lib.Step('Test NaCl-pinned toolchain',
                           status,
                           halt_on_fail=False):
        buildbot_lib.SCons(context, args=['smoke_tests'], parallel=True)
        buildbot_lib.SCons(context, args=['large_tests'], parallel=False)
        buildbot_lib.SCons(context,
                           args=['pnacl_generate_pexe=0', 'nonpexe_tests'],
                           parallel=True)

if host_os == 'win':
    # On windows, sync with Windows git/svn rather than cygwin git/svn
    with buildbot_lib.Step('Sync toolchain_build sources', status):
        buildbot_lib.Command(
            context, ToolchainBuildCmd(sync=True, extra_flags=['--sync-only']))

with buildbot_lib.Step('Update cygwin/check bash', status, halt_on_fail=True):
    # Update cygwin if necessary.
    if host_os == 'win':
        if sys.platform == 'cygwin':