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

Side by Side Diff: tools/presubmit.py

Issue 1101493002: [test] Initial import of an emscripten test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « test/emscripten/testcfg.py ('k') | no next file » | 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/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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 for ext in SourceProcessor.RELEVANT_EXTENSIONS: 318 for ext in SourceProcessor.RELEVANT_EXTENSIONS:
319 if name.endswith(ext): 319 if name.endswith(ext):
320 return True 320 return True
321 return False 321 return False
322 322
323 def GetPathsToSearch(self): 323 def GetPathsToSearch(self):
324 return ['.'] 324 return ['.']
325 325
326 def IgnoreDir(self, name): 326 def IgnoreDir(self, name):
327 return (super(SourceProcessor, self).IgnoreDir(name) or 327 return (super(SourceProcessor, self).IgnoreDir(name) or
328 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) 328 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources',
329 'emscripten'))
329 330
330 IGNORE_COPYRIGHTS = ['box2d.js', 331 IGNORE_COPYRIGHTS = ['box2d.js',
331 'cpplint.py', 332 'cpplint.py',
332 'copy.js', 333 'copy.js',
333 'corrections.js', 334 'corrections.js',
334 'crypto.js', 335 'crypto.js',
335 'daemon.py', 336 'daemon.py',
336 'earley-boyer.js', 337 'earley-boyer.js',
337 'fannkuch.js', 338 'fannkuch.js',
338 'fasta.js', 339 'fasta.js',
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 success = CheckRuntimeVsNativesNameClashes(workspace) and success 489 success = CheckRuntimeVsNativesNameClashes(workspace) and success
489 success = CheckExternalReferenceRegistration(workspace) and success 490 success = CheckExternalReferenceRegistration(workspace) and success
490 if success: 491 if success:
491 return 0 492 return 0
492 else: 493 else:
493 return 1 494 return 1
494 495
495 496
496 if __name__ == '__main__': 497 if __name__ == '__main__':
497 sys.exit(Main()) 498 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/emscripten/testcfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698