| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |