| OLD | NEW |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 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.path | 8 import os.path |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 TOP_DIR = 'native_client' | 11 TOP_DIR = 'native_client' |
| 12 MAIN_DEPS = os.path.join(TOP_DIR, 'DEPS') | 12 MAIN_DEPS = os.path.join(TOP_DIR, 'DEPS') |
| 13 | 13 |
| 14 # List of directories to not apply presubmit project checks, relative | 14 # List of directories to not apply presubmit project checks, relative |
| 15 # to the NaCl top directory | 15 # to the NaCl top directory |
| 16 EXCLUDE_PROJECT_CHECKS_DIRS = [ | 16 EXCLUDE_PROJECT_CHECKS_DIRS = [ |
| 17 # The following contain test data (including automatically generated), | 17 # The following contain test data (including automatically generated), |
| 18 # and do not follow our conventions. | 18 # and do not follow our conventions. |
| 19 'src/trusted/validator_x86/testdata/32', | 19 'src/trusted/validator_x86/testdata/32', |
| 20 'src/trusted/validator_x86/testdata/64', | 20 'src/trusted/validator_x86/testdata/64', |
| 21 'src/trusted/validator/x86/decoder/generator/testdata/32', | 21 'src/trusted/validator/x86/decoder/generator/testdata/32', |
| 22 'src/trusted/validator/x86/decoder/generator/testdata/64', | 22 'src/trusted/validator/x86/decoder/generator/testdata/64', |
| 23 # The following directories contains automatically generated source, | 23 # The following directories contains automatically generated source, |
| 24 # which may not follow our conventions. | 24 # which may not follow our conventions. |
| 25 'src/trusted/validator_x86/gen', | 25 'src/trusted/validator_x86/gen', |
| 26 'src/trusted/validator/x86/decoder/gen', | 26 'src/trusted/validator/x86/decoder/gen', |
| 27 'src/trusted/validator/x86/decoder/generator/gen', | 27 'src/trusted/validator/x86/decoder/generator/gen', |
| 28 'src/trusted/validator/x86/ncval_seg_sfi/gen', | 28 'src/trusted/validator/x86/ncval_seg_sfi/gen', |
| 29 'src/trusted/validator_arm/gen', | 29 'src/trusted/validator_arm/gen', |
| 30 'src/trusted/validator_ragel/gen', |
| 30 ] | 31 ] |
| 31 | 32 |
| 32 def NaclTopDir(): | 33 def NaclTopDir(): |
| 33 cwd = os.getcwd() | 34 cwd = os.getcwd() |
| 34 pos = cwd.rfind(TOP_DIR) | 35 pos = cwd.rfind(TOP_DIR) |
| 35 if pos < 0: | 36 if pos < 0: |
| 36 print 'ERROR: expected to be called from with %s' % TOP_DIR | 37 print 'ERROR: expected to be called from with %s' % TOP_DIR |
| 37 return cwd[:pos + len(TOP_DIR)] | 38 return cwd[:pos + len(TOP_DIR)] |
| 38 | 39 |
| 39 def _CommonChecks(input_api, output_api): | 40 def _CommonChecks(input_api, output_api): |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 'nacl-mac10.6-newlib-dbg-clang', | 140 'nacl-mac10.6-newlib-dbg-clang', |
| 140 # pnacl scons bots | 141 # pnacl scons bots |
| 141 'nacl-lucid_64-newlib-arm_qemu-pnacl', | 142 'nacl-lucid_64-newlib-arm_qemu-pnacl', |
| 142 'nacl-lucid_64-newlib-x86_32-pnacl', | 143 'nacl-lucid_64-newlib-x86_32-pnacl', |
| 143 'nacl-lucid_64-newlib-x86_64-pnacl', | 144 'nacl-lucid_64-newlib-x86_64-pnacl', |
| 144 # pnacl spec2k bots | 145 # pnacl spec2k bots |
| 145 'nacl-lucid_64-newlib-arm_qemu-pnacl-spec', | 146 'nacl-lucid_64-newlib-arm_qemu-pnacl-spec', |
| 146 'nacl-lucid_64-newlib-x86_32-pnacl-spec', | 147 'nacl-lucid_64-newlib-x86_32-pnacl-spec', |
| 147 'nacl-lucid_64-newlib-x86_64-pnacl-spec', | 148 'nacl-lucid_64-newlib-x86_64-pnacl-spec', |
| 148 ] | 149 ] |
| OLD | NEW |