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

Side by Side Diff: tools/bots/dart2js_dump_info.py

Issue 502403002: Make dart2js dump info bot follow the normal test output format for buildbot (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | 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/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Buildbot steps for testing dart2js with --dump-info turned on 8 Buildbot steps for testing dart2js with --dump-info turned on
9 """ 9 """
10 import os 10 import os
(...skipping 23 matching lines...) Expand all
34 'generated_compilations') 34 'generated_compilations')
35 tests = ['html', 'samples'] 35 tests = ['html', 'samples']
36 36
37 with bot.BuildStep('Cleaning out old compilations'): 37 with bot.BuildStep('Cleaning out old compilations'):
38 print "Cleaning out %s" % compilations_dir 38 print "Cleaning out %s" % compilations_dir
39 shutil.rmtree(compilations_dir, ignore_errors=True) 39 shutil.rmtree(compilations_dir, ignore_errors=True)
40 40
41 with utils.TempDir() as temp_dir: 41 with utils.TempDir() as temp_dir:
42 normal_compilations = os.path.join(temp_dir, 'normal') 42 normal_compilations = os.path.join(temp_dir, 'normal')
43 dump_compilations = os.path.join(temp_dir, 'dump') 43 dump_compilations = os.path.join(temp_dir, 'dump')
44 normal_compilation_command = [sys.executable, './tools/test.py', 44 normal_compilation_command = [sys.executable,
45 '--mode=' + build_info.mode, 45 './tools/test.py',
46 '-cdart2js', '-rnone'] + tests 46 '--mode=%s' % build_info.mode,
47 '-cdart2js',
48 '-rnone',
49 '--time',
50 '--use-sdk',
51 '--report',
52 '--progress=buildbot',
53 '-v'
54 ] + tests
47 with bot.BuildStep('Compiling without dump info'): 55 with bot.BuildStep('Compiling without dump info'):
48 Run(normal_compilation_command) 56 Run(normal_compilation_command)
49 pass 57 pass
50 58
51 with bot.BuildStep('Store normal compilation artifacts'): 59 with bot.BuildStep('Store normal compilation artifacts'):
52 args = ['mv', compilations_dir, normal_compilations] 60 args = ['mv', compilations_dir, normal_compilations]
53 Run(args) 61 Run(args)
54 62
55 with bot.BuildStep('Compiling with dump info'): 63 with bot.BuildStep('Compiling with dump info'):
56 args = normal_compilation_command + ['--dart2js-options=--dump-info'] 64 args = normal_compilation_command + ['--dart2js-options=--dump-info']
57 Run(args) 65 Run(args)
58 66
59 with bot.BuildStep('Store normal compilation artifacts'): 67 with bot.BuildStep('Store normal compilation artifacts'):
60 args = ['mv', compilations_dir, dump_compilations] 68 args = ['mv', compilations_dir, dump_compilations]
61 Run(args) 69 Run(args)
62 70
63 with bot.BuildStep('Compare outputs'): 71 with bot.BuildStep('Compare outputs'):
64 args = ['diff', '-rq', '-x', '*\.json', 72 args = ['diff', '-rq', '-x', '*\.json',
65 normal_compilations, dump_compilations] 73 normal_compilations, dump_compilations]
66 # Diff will return non zero and we will throw if there are any differences 74 # Diff will return non zero and we will throw if there are any differences
67 Run(args) 75 Run(args)
68 76
69 with bot.BuildStep('Validate dump files'): 77 with bot.BuildStep('Validate dump files'):
70 # Do whatever you like :-), files are in dump_compilations 78 # Do whatever you like :-), files are in dump_compilations
71 pass 79 pass
72 80
73 if __name__ == '__main__': 81 if __name__ == '__main__':
74 bot.RunBot(DumpConfig, DumpSteps) 82 bot.RunBot(DumpConfig, DumpSteps)
75 83
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698