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

Side by Side Diff: dart/utils/compiler/buildbot.py

Issue 10905208: Add --step_name option to test.dart. (Closed) Base URL: https://dart.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/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Dart2js buildbot steps 7 """Dart2js buildbot steps
8 8
9 Runs tests for the dart2js compiler. 9 Runs tests for the dart2js compiler.
10 """ 10 """
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 103
104 def TestStepName(name, flags): 104 def TestStepName(name, flags):
105 # Filter out flags with '=' as this breaks the /stats feature of the 105 # Filter out flags with '=' as this breaks the /stats feature of the
106 # build bot. 106 # build bot.
107 flags = [x for x in flags if not '=' in x] 107 flags = [x for x in flags if not '=' in x]
108 return '%s tests %s' % (name, ' '.join(flags)) 108 return '%s tests %s' % (name, ' '.join(flags))
109 109
110 110
111 def TestStep(name, mode, system, compiler, runtime, targets, flags): 111 def TestStep(name, mode, system, compiler, runtime, targets, flags):
112 print '@@@BUILD_STEP %s@@@' % TestStepName(name, flags) 112 step_name = TestStepName(name, flags)
113 sys.stdout.flush() 113 sys.stdout.flush()
114 if NeedsXterm(compiler, runtime) and system == 'linux': 114 if NeedsXterm(compiler, runtime) and system == 'linux':
115 cmd = ['xvfb-run', '-a'] 115 cmd = ['xvfb-run', '-a']
116 else: 116 else:
117 cmd = [] 117 cmd = []
118 118
119 user_test = os.environ.get('USER_TEST', 'no') 119 user_test = os.environ.get('USER_TEST', 'no')
120 120
ricow1 2012/09/11 08:14:38 Why don't we print the @@@BUILD_STEP $step_name@@@
121 cmd.extend([sys.executable, 121 cmd.extend([sys.executable,
122 os.path.join(os.curdir, 'tools', 'test.py'), 122 os.path.join(os.curdir, 'tools', 'test.py'),
123 '--step_name=' + step_name,
123 '--mode=' + mode, 124 '--mode=' + mode,
124 '--compiler=' + compiler, 125 '--compiler=' + compiler,
125 '--runtime=' + runtime, 126 '--runtime=' + runtime,
126 '--time', 127 '--time',
127 '--use-sdk', 128 '--use-sdk',
128 '--report']) 129 '--report'])
129 130
130 if user_test == 'yes': 131 if user_test == 'yes':
131 cmd.append('--progress=color') 132 cmd.append('--progress=color')
132 else: 133 else:
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 and runtime != 'safari'): 355 and runtime != 'safari'):
355 status = TestCompiler(runtime, mode, system, option, 356 status = TestCompiler(runtime, mode, system, option,
356 test_flags + ['--checked'], is_buildbot) 357 test_flags + ['--checked'], is_buildbot)
357 358
358 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) 359 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime)
359 if status != 0: print '@@@STEP_FAILURE@@@' 360 if status != 0: print '@@@STEP_FAILURE@@@'
360 return status 361 return status
361 362
362 if __name__ == '__main__': 363 if __name__ == '__main__':
363 sys.exit(main()) 364 sys.exit(main())
OLDNEW
« dart/tools/test.dart ('K') | « dart/tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698