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

Side by Side Diff: frog/presubmit.py

Issue 9086008: Add python wrapper for test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Long line Created 8 years, 11 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 | frog/scripts/buildbot_annotated_steps.py » ('j') | tools/test_wrapper.py » ('J')
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 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import optparse 6 import optparse
7 import os 7 import os
8 import stat 8 import stat
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 111
112 def main(): 112 def main():
113 (options, args) = BuildOptions().parse_args() 113 (options, args) = BuildOptions().parse_args()
114 114
115 RunCommand('../tools/build.py', '--mode=release') 115 RunCommand('../tools/build.py', '--mode=release')
116 116
117 if not options.leg_only: 117 if not options.leg_only:
118 SelfHost() 118 SelfHost()
119 119
120 test_cmd = ['../tools/test.py', '--report', '--timeout=30', 120 test_cmd = ['../tools/test_wrapper.py', '--report', '--timeout=30',
121 '--progress=color', '--mode=release', '--checked'] 121 '--progress=color', '--mode=release', '--checked']
122 122
123 if options.notest: return 123 if options.notest: return
124 124
125 if args: 125 if args:
126 if options.leg_only: 126 if options.leg_only:
127 test_cmd.append('--component=leg') 127 test_cmd.append('--component=leg')
128 else: 128 else:
129 test_cmd.append('--component=frogsh,leg') 129 test_cmd.append('--component=frogsh,leg')
130 test_cmd.extend(args) 130 test_cmd.extend(args)
(...skipping 29 matching lines...) Expand all
160 160
161 cmd = test_cmd + ['--component=vm', 'leg'] 161 cmd = test_cmd + ['--component=vm', 'leg']
162 RunCommand(*cmd, verbose=True) 162 RunCommand(*cmd, verbose=True)
163 163
164 if __name__ == '__main__': 164 if __name__ == '__main__':
165 try: 165 try:
166 sys.exit(main()) 166 sys.exit(main())
167 except Error as e: 167 except Error as e:
168 sys.stderr.write('%s\n' % e) 168 sys.stderr.write('%s\n' % e)
169 sys.exit(1) 169 sys.exit(1)
OLDNEW
« no previous file with comments | « no previous file | frog/scripts/buildbot_annotated_steps.py » ('j') | tools/test_wrapper.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698