| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 # | 4 # |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import platform | 7 import platform |
| 8 import re | 8 import re |
| 9 import shutil | 9 import shutil |
| 10 import subprocess | 10 import subprocess |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 def Cleanup(self): | 529 def Cleanup(self): |
| 530 return | 530 return |
| 531 | 531 |
| 532 | 532 |
| 533 class LegArchitecture(StandaloneArchitecture): | 533 class LegArchitecture(StandaloneArchitecture): |
| 534 | 534 |
| 535 def __init__(self, root_path, arch, mode, component, test): | 535 def __init__(self, root_path, arch, mode, component, test): |
| 536 super(LegArchitecture, self).__init__(root_path, arch, mode, component, | 536 super(LegArchitecture, self).__init__(root_path, arch, mode, component, |
| 537 test) | 537 test) |
| 538 def GetOptions(self): | 538 def GetOptions(self): |
| 539 return ['--enable_leg', '--leg_only'] | 539 return ['--leg_only'] |
| 540 | 540 |
| 541 def GetExecutable(self): | 541 def GetExecutable(self): |
| 542 """Returns the path to the Dart test runner (executes the .dart file).""" | 542 """Returns the path to the Dart test runner (executes the .dart file).""" |
| 543 return utils.GetDartRunner(self.mode, self.arch, 'frog') | 543 return utils.GetDartRunner(self.mode, self.arch, 'frog') |
| 544 | 544 |
| 545 | 545 |
| 546 # Long term, we should do the running machinery that is currently in | 546 # Long term, we should do the running machinery that is currently in |
| 547 # DartRunner.java | 547 # DartRunner.java |
| 548 class DartcArchitecture(StandaloneArchitecture): | 548 class DartcArchitecture(StandaloneArchitecture): |
| 549 """Runs the Dart ->JS compiler then runs the result in a standalone JS VM.""" | 549 """Runs the Dart ->JS compiler then runs the result in a standalone JS VM.""" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 return WebDriverArchitecture(root_path, arch, mode, component, test) | 596 return WebDriverArchitecture(root_path, arch, mode, component, test) |
| 597 | 597 |
| 598 elif component in ['vm', 'frog', 'frogsh']: | 598 elif component in ['vm', 'frog', 'frogsh']: |
| 599 return StandaloneArchitecture(root_path, arch, mode, component, test) | 599 return StandaloneArchitecture(root_path, arch, mode, component, test) |
| 600 | 600 |
| 601 elif component == 'leg': | 601 elif component == 'leg': |
| 602 return LegArchitecture(root_path, arch, mode, component, test) | 602 return LegArchitecture(root_path, arch, mode, component, test) |
| 603 | 603 |
| 604 elif component == 'dartc': | 604 elif component == 'dartc': |
| 605 return DartcArchitecture(root_path, arch, mode, component, test) | 605 return DartcArchitecture(root_path, arch, mode, component, test) |
| OLD | NEW |