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

Side by Side Diff: PRESUBMIT.py

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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 | build_tools/common.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 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Documentation on PRESUBMIT.py can be found at: 5 # Documentation on PRESUBMIT.py can be found at:
6 # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts 6 # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
7 7
8 import os 8 import os
9 import subprocess 9 import subprocess
10 10
11 PYTHON = 'build_tools/python_wrapper' 11 PYTHON = 'build_tools/python_wrapper'
12 12
13 _EXCLUDED_PATHS = ( 13 _EXCLUDED_PATHS = (
14 # patch_configure.py contains long lines embedded in multi-line 14 # patch_configure.py contains long lines embedded in multi-line
15 # strings. 15 # strings.
16 r"^build_tools[\\\/]patch_configure.py", 16 r"^build_tools[\\\/]patch_configure.py",
17 # Many of the files in glibc-compat come from the other sources such as 17 # Many of the files in glibc-compat come from the other sources such as
18 # newlib and as such do not contain our copyright header. 18 # newlib and as such do not contain our copyright header.
19 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]err\.h", 19 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]err\.h",
20 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]fts\.h", 20 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]fts\.h",
21 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]err\.c", 21 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]err\.c",
22 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]libc-symbols\.h", 22 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]libc-symbols\.h",
23 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]dirfd.c", 23 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]dirfd.c",
24 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]flock.c", 24 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]flock.c",
25 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]fts.c", 25 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]fts.c",
26 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]herror.c", 26 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]herror.c",
27 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]timegm.c", 27 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]timegm.c",
28 r"^ports[\\\/]alut-demo[\\\/]alut_hello_world.c",
28 ) 29 )
29 30
30 def RunPylint(input_api, output_api): 31 def RunPylint(input_api, output_api):
31 output = [] 32 output = []
32 canned = input_api.canned_checks 33 canned = input_api.canned_checks
33 disabled_warnings = [ 34 disabled_warnings = [
34 'W0613', # Unused argument 35 'W0613', # Unused argument
35 ] 36 ]
36 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ 37 black_list = list(input_api.DEFAULT_BLACK_LIST) + [
37 r'ports[\/\\]ipython-ppapi[\/\\]kernel\.py', 38 r'ports[\/\\]ipython-ppapi[\/\\]kernel\.py',
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 'naclports-linux-clang-4', 147 'naclports-linux-clang-4',
147 'naclports-linux-clang-5', 148 'naclports-linux-clang-5',
148 'naclports-linux-emscripten-0', 149 'naclports-linux-emscripten-0',
149 ] 150 ]
150 151
151 152
152 def GetPreferredTryMasters(_, change): 153 def GetPreferredTryMasters(_, change):
153 return { 154 return {
154 'tryserver.nacl': { t: set(['defaulttests']) for t in TRYBOTS }, 155 'tryserver.nacl': { t: set(['defaulttests']) for t in TRYBOTS },
155 } 156 }
OLDNEW
« no previous file with comments | « no previous file | build_tools/common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698