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

Side by Side Diff: frog/presubmit.py

Issue 9873021: Move frog/leg to lib/compiler/implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « frog/leg/warnings.dart ('k') | frog/tests/leg/src/LinkTest.dart » ('j') | 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 if not options.leg_only: 120 if not options.leg_only:
121 SelfHost() 121 SelfHost()
122 122
123 test_cmd = ['./tools/test.py', '--report', '--timeout=30', 123 test_cmd = ['./tools/test.py', '--report', '--timeout=30',
124 '--progress=color', '--mode=release', '--checked'] 124 '--progress=color', '--mode=release', '--checked']
125 125
126 if options.notest: return 126 if options.notest: return
127 127
128 if args: 128 if args:
129 if options.leg_only: 129 if options.leg_only:
130 test_cmd.append('--component=dart2js') 130 test_cmd.extend('--compiler=dart2js', '--runtime=d8')
131 else: 131 else:
132 test_cmd.append('--component=frogsh,dart2js') 132 test_cmd.append('--component=frogsh,dart2js')
133 test_cmd.extend(args) 133 test_cmd.extend(args)
134 RunCommand(*test_cmd, verbose=True) 134 RunCommand(*test_cmd, verbose=True)
135 else: 135 else:
136 if not options.leg_only: 136 if not options.leg_only:
137 # Run frog.py on the corelib tests, so we get some frog.py coverage. 137 # Run frog.py on the corelib tests, so we get some frog.py coverage.
138 cmd = test_cmd + ['--component=frog', 'corelib'] 138 cmd = test_cmd + ['--component=frog', 'corelib']
139 RunCommand(*cmd, verbose=True) 139 RunCommand(*cmd, verbose=True)
140 140
141 # Run frogium client tests. This is a pretty quick test but 141 # Run frogium client tests. This is a pretty quick test but
142 # tends to uncover different issues due to the size/complexity 142 # tends to uncover different issues due to the size/complexity
143 # of the DOM APIs. 143 # of the DOM APIs.
144 cmd = test_cmd + ['--component=frogium', 'client'] 144 cmd = test_cmd + ['--component=frogium', 'client']
145 RunCommand(*cmd, verbose=True) 145 RunCommand(*cmd, verbose=True)
146 146
147 # TODO(jimhug): Consider adding co19 back when it delivers more value 147 # TODO(jimhug): Consider adding co19 back when it delivers more value
148 # than pain. 148 # than pain.
149 # Run frogsh on most of the tests. 149 # Run frogsh on most of the tests.
150 cmd = test_cmd + ['--component=frogsh', 'language', 'corelib', 150 cmd = test_cmd + ['--component=frogsh', 'language', 'corelib',
151 'isolate', 'peg', 'frog', 'css', 'frog_native'] 151 'isolate', 'peg', 'frog', 'css', 'frog_native']
152 RunCommand(*cmd, verbose=True) 152 RunCommand(*cmd, verbose=True)
153 153
154 # Run the "utils" tests which includes dartdoc. Frog/leg changes often 154 # Run the "utils" tests which includes dartdoc. Frog/leg changes often
155 # break dartdoc and this tries to catch those. 155 # break dartdoc and this tries to catch those.
156 cmd = test_cmd + ['--component=vm', 'utils'] 156 cmd = test_cmd + ['--compiler=none', '--runtime=vm', 'utils']
157 RunCommand(*cmd, verbose=True) 157 RunCommand(*cmd, verbose=True)
158 158
159 # Run leg unit tests. 159 # Run leg unit tests.
160 cmd = test_cmd + ['--component=vm', 'leg'] 160 cmd = test_cmd + ['--compiler=none', '--runtime=vm', 'leg']
161 RunCommand(*cmd, verbose=True) 161 RunCommand(*cmd, verbose=True)
162 162
163 # Leg does not implement checked mode yet. 163 # Leg does not implement checked mode yet.
164 test_cmd.remove('--checked') 164 test_cmd.remove('--checked')
165 165
166 cmd = test_cmd + ['--component=dart2js', 'leg_only', 'frog_native'] 166 cmd = test_cmd + ['--compiler=dart2js', '--runtime=d8',
167 'leg_only', 'frog_native']
167 RunCommand(*cmd, verbose=True) 168 RunCommand(*cmd, verbose=True)
168 169
169 # Run dart2js and legium on "built-in" tests. 170 # Run dart2js and legium on "built-in" tests.
170 cmd = test_cmd + ['--component=dart2js,legium'] 171 cmd = test_cmd + ['--compiler=dart2js', '--runtime=d8,drt']
171 RunCommand(*cmd, verbose=True) 172 RunCommand(*cmd, verbose=True)
172 173
173 174
174 if __name__ == '__main__': 175 if __name__ == '__main__':
175 try: 176 try:
176 sys.exit(main()) 177 sys.exit(main())
177 except Error as e: 178 except Error as e:
178 sys.stderr.write('%s\n' % e) 179 sys.stderr.write('%s\n' % e)
179 sys.exit(1) 180 sys.exit(1)
OLDNEW
« no previous file with comments | « frog/leg/warnings.dart ('k') | frog/tests/leg/src/LinkTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698