| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 IGNORE_LINT = ['flag-definitions.h'] | 231 IGNORE_LINT = ['flag-definitions.h'] |
| 232 | 232 |
| 233 def IgnoreFile(self, name): | 233 def IgnoreFile(self, name): |
| 234 return (super(CppLintProcessor, self).IgnoreFile(name) | 234 return (super(CppLintProcessor, self).IgnoreFile(name) |
| 235 or (name in CppLintProcessor.IGNORE_LINT)) | 235 or (name in CppLintProcessor.IGNORE_LINT)) |
| 236 | 236 |
| 237 def GetPathsToSearch(self): | 237 def GetPathsToSearch(self): |
| 238 return ['src', 'include', 'samples', | 238 return ['src', 'include', 'samples', |
| 239 join('test', 'base-unittests'), | 239 join('test', 'base-unittests'), |
| 240 join('test', 'cctest')] | 240 join('test', 'cctest'), |
| 241 join('test', 'compiler-unittests')] |
| 241 | 242 |
| 242 def GetCpplintScript(self, prio_path): | 243 def GetCpplintScript(self, prio_path): |
| 243 for path in [prio_path] + os.environ["PATH"].split(os.pathsep): | 244 for path in [prio_path] + os.environ["PATH"].split(os.pathsep): |
| 244 path = path.strip('"') | 245 path = path.strip('"') |
| 245 cpplint = os.path.join(path, "cpplint.py") | 246 cpplint = os.path.join(path, "cpplint.py") |
| 246 if os.path.isfile(cpplint): | 247 if os.path.isfile(cpplint): |
| 247 return cpplint | 248 return cpplint |
| 248 | 249 |
| 249 return None | 250 return None |
| 250 | 251 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 success = CheckGeneratedRuntimeTests(workspace) and success | 453 success = CheckGeneratedRuntimeTests(workspace) and success |
| 453 success = CheckExternalReferenceRegistration(workspace) and success | 454 success = CheckExternalReferenceRegistration(workspace) and success |
| 454 if success: | 455 if success: |
| 455 return 0 | 456 return 0 |
| 456 else: | 457 else: |
| 457 return 1 | 458 return 1 |
| 458 | 459 |
| 459 | 460 |
| 460 if __name__ == '__main__': | 461 if __name__ == '__main__': |
| 461 sys.exit(Main()) | 462 sys.exit(Main()) |
| OLD | NEW |