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

Side by Side Diff: tools/presubmit.py

Issue 10919265: First commit of new tools/run-tests.py (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 def IgnoreDir(self, name): 301 def IgnoreDir(self, name):
302 return (super(SourceProcessor, self).IgnoreDir(name) 302 return (super(SourceProcessor, self).IgnoreDir(name)
303 or (name == 'third_party') 303 or (name == 'third_party')
304 or (name == 'gyp') 304 or (name == 'gyp')
305 or (name == 'out') 305 or (name == 'out')
306 or (name == 'obj') 306 or (name == 'obj')
307 or (name == 'DerivedSources')) 307 or (name == 'DerivedSources'))
308 308
309 IGNORE_COPYRIGHTS = ['cpplint.py', 309 IGNORE_COPYRIGHTS = ['cpplint.py',
310 'daemon.py',
310 'earley-boyer.js', 311 'earley-boyer.js',
311 'raytrace.js', 312 'raytrace.js',
312 'crypto.js', 313 'crypto.js',
313 'libraries.cc', 314 'libraries.cc',
314 'libraries-empty.cc', 315 'libraries-empty.cc',
315 'jsmin.py', 316 'jsmin.py',
316 'regexp-pcre.js'] 317 'regexp-pcre.js']
317 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] 318 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js']
318 319
319 def ProcessContents(self, name, contents): 320 def ProcessContents(self, name, contents):
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 print "Running copyright header and trailing whitespaces check..." 380 print "Running copyright header and trailing whitespaces check..."
380 success = SourceProcessor().Run(workspace) and success 381 success = SourceProcessor().Run(workspace) and success
381 if success: 382 if success:
382 return 0 383 return 0
383 else: 384 else:
384 return 1 385 return 1
385 386
386 387
387 if __name__ == '__main__': 388 if __name__ == '__main__':
388 sys.exit(Main()) 389 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/test262/testcfg.py ('k') | tools/run-tests.py » ('j') | tools/run-tests.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698