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

Side by Side Diff: dart/frog/presubmit.py

Issue 8957008: Always use --leg_only option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update language-leg.status Created 9 years 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 # 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 22 matching lines...) Expand all
33 33
34 def RunCommand(*arguments, **kwargs): 34 def RunCommand(*arguments, **kwargs):
35 pattern = None 35 pattern = None
36 if 'pattern' in kwargs: 36 if 'pattern' in kwargs:
37 pattern = kwargs['pattern'] 37 pattern = kwargs['pattern']
38 expected_exit_code = 0 38 expected_exit_code = 0
39 if 'exit_code' in kwargs: 39 if 'exit_code' in kwargs:
40 expected_exit_code = kwargs['exit_code'] 40 expected_exit_code = kwargs['exit_code']
41 stdout = subprocess.PIPE 41 stdout = subprocess.PIPE
42 if 'verbose' in kwargs and kwargs['verbose']: 42 if 'verbose' in kwargs and kwargs['verbose']:
43 print ' '.join(arguments)
43 stdout = None 44 stdout = None
44 try: 45 try:
45 proc = subprocess.Popen(arguments, 46 proc = subprocess.Popen(arguments,
46 stdout=stdout, 47 stdout=stdout,
47 stderr=subprocess.STDOUT) 48 stderr=subprocess.STDOUT)
48 stdout = proc.communicate()[0] 49 stdout = proc.communicate()[0]
49 exit_code = proc.wait() 50 exit_code = proc.wait()
50 except OSError as e: 51 except OSError as e:
51 raise Error('%s: %s' % (arguments[0], e.strerror)) 52 raise Error('%s: %s' % (arguments[0], e.strerror))
52 if exit_code != expected_exit_code: 53 if exit_code != expected_exit_code:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 # Run frogium client tests. This is a pretty quick test but 137 # Run frogium client tests. This is a pretty quick test but
137 # tends to uncover different issues due to the size/complexity 138 # tends to uncover different issues due to the size/complexity
138 # of the DOM APIs. 139 # of the DOM APIs.
139 cmd = test_cmd + ['--component=frogium', 'client'] 140 cmd = test_cmd + ['--component=frogium', 'client']
140 RunCommand(*cmd, verbose=True) 141 RunCommand(*cmd, verbose=True)
141 142
142 # TODO(jimhug): Consider adding co19 back when it delivers more value 143 # TODO(jimhug): Consider adding co19 back when it delivers more value
143 # than pain. 144 # than pain.
144 # Run frogsh on most of the tests. 145 # Run frogsh on most of the tests.
145 cmd = test_cmd + ['--component=frogsh', 'language', 'corelib', 'leg', 146 cmd = test_cmd + ['--component=frogsh', 'language', 'corelib',
146 'isolate', 'peg', 'leg_only', 'frog', 'css', 'await'] 147 'isolate', 'peg', 'frog', 'css', 'await']
147 RunCommand(*cmd, verbose=True) 148 RunCommand(*cmd, verbose=True)
148 149
149 # Run leg on most of the tests. 150 # Run leg on most of the tests.
150 # TODO(ahe): Add co19 tests once leg gets more mature. 151 # TODO(ahe): Add co19 tests once leg gets more mature.
151 cmd = test_cmd + ['--component=leg', 152 cmd = test_cmd + ['--component=leg', 'language', 'corelib', 'leg_only']
152 'language', 'corelib', 'leg', 'leg_only'] 153 RunCommand(*cmd, verbose=True)
154
155 cmd = test_cmd + ['--component=vm', 'leg']
153 RunCommand(*cmd, verbose=True) 156 RunCommand(*cmd, verbose=True)
154 157
155 if __name__ == '__main__': 158 if __name__ == '__main__':
156 try: 159 try:
157 sys.exit(main()) 160 sys.exit(main())
158 except Error as e: 161 except Error as e:
159 sys.stderr.write('%s\n' % e) 162 sys.stderr.write('%s\n' % e)
160 sys.exit(1) 163 sys.exit(1)
OLDNEW
« no previous file with comments | « no previous file | dart/frog/scripts/buildbot_annotated_steps.py » ('j') | dart/frog/tests/leg/leg.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698