Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: buildbot/buildbot_lib.py

Issue 427153003: [MIPS] Enhance MIPS testing on its buildbot (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Update. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | buildbot/buildbot_pnacl.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import optparse 6 import optparse
7 import os.path 7 import os.path
8 import shutil 8 import shutil
9 import subprocess 9 import subprocess
10 import sys 10 import sys
11 import time 11 import time
12 import traceback 12 import traceback
13 13
14 14
15 ARCH_MAP = { 15 ARCH_MAP = {
16 '32': { 16 '32': {
17 'gyp_arch': 'ia32', 17 'gyp_arch': 'ia32',
18 'scons_platform': 'x86-32', 18 'scons_platform': 'x86-32',
19 }, 19 },
20 '64': { 20 '64': {
21 'gyp_arch': 'x64', 21 'gyp_arch': 'x64',
22 'scons_platform': 'x86-64', 22 'scons_platform': 'x86-64',
23 }, 23 },
24 'arm': { 24 'arm': {
25 'gyp_arch': 'arm', 25 'gyp_arch': 'arm',
26 'scons_platform': 'arm', 26 'scons_platform': 'arm',
27 }, 27 },
28 'mips32': {
29 'gyp_arch': 'mips32',
30 'scons_platform': 'mips32',
31 },
28 } 32 }
29 33
30 34
31 def RunningOnBuildbot(): 35 def RunningOnBuildbot():
32 return os.environ.get('BUILDBOT_SLAVE_TYPE') is not None 36 return os.environ.get('BUILDBOT_SLAVE_TYPE') is not None
33 37
34 38
35 def GetHostPlatform(): 39 def GetHostPlatform():
36 sys_platform = sys.platform.lower() 40 sys_platform = sys.platform.lower()
37 if sys_platform.startswith('linux'): 41 if sys_platform.startswith('linux'):
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 # Otherwise these go back to the preamble. 645 # Otherwise these go back to the preamble.
642 with Step('summary', status): 646 with Step('summary', status):
643 if status.ever_failed: 647 if status.ever_failed:
644 print 'There were failed stages.' 648 print 'There were failed stages.'
645 else: 649 else:
646 print 'Success.' 650 print 'Success.'
647 # Display a summary of the build. 651 # Display a summary of the build.
648 status.DisplayBuildStatus() 652 status.DisplayBuildStatus()
649 653
650 sys.exit(status.ReturnValue()) 654 sys.exit(status.ReturnValue())
OLDNEW
« no previous file with comments | « no previous file | buildbot/buildbot_pnacl.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698