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

Side by Side Diff: tools/testing/frogpad/frogpad.py

Issue 9669019: Revert "Revert the revert." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « tools/testing/dart/test_suite.dart ('k') | 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/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, 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 """ 8 """
9 Frogpad is used to compile .dart files to javascript. 9 Frogpad is used to compile .dart files to javascript.
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 self.frogpad_dir))) 165 self.frogpad_dir)))
166 166
167 # directory of frog compiler source code 167 # directory of frog compiler source code
168 self.frog_dir = os.path.join(self.dart_dir, "frog") 168 self.frog_dir = os.path.join(self.dart_dir, "frog")
169 169
170 logging.debug("dartdir_dir: '%s'" % self.dart_dir) 170 logging.debug("dartdir_dir: '%s'" % self.dart_dir)
171 logging.debug("frog_dir: '%s'" % self.frog_dir) 171 logging.debug("frog_dir: '%s'" % self.frog_dir)
172 logging.debug("frogpad_dir: '%s'" % self.frogpad_dir) 172 logging.debug("frogpad_dir: '%s'" % self.frogpad_dir)
173 173
174 # location of frogpad.js 174 # location of frogpad.js
175 # (frogpad.js is generated by running frogsh_bootstrap_wrapper.py)
175 if not options.frogpad_js: 176 if not options.frogpad_js:
176 raise Exception("--frogpad_js is required") 177 raise Exception("--frogpad_js is required")
177 178
178 if not os.path.exists(options.frogpad_js): 179 if not os.path.exists(options.frogpad_js):
179 raise FileNotFoundException(options.frogpad_js) 180 raise FileNotFoundException(options.frogpad_js)
180 181
181 self.frogpad_js = options.frogpad_js 182 self.frogpad_js = options.frogpad_js
182 183
183 if options.out: 184 if options.out:
184 # user has specified an output file name 185 # user has specified an output file name
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 raise CommandFailedException(msg) 360 raise CommandFailedException(msg)
360 logging.debug("SUCCEEDED (%d bytes)" % len(stdout)) 361 logging.debug("SUCCEEDED (%d bytes)" % len(stdout))
361 return stdout 362 return stdout
362 363
363 364
364 def main(argv): 365 def main(argv):
365 Pad(argv) 366 Pad(argv)
366 367
367 if __name__ == "__main__": 368 if __name__ == "__main__":
368 sys.exit(main(sys.argv)) 369 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698