| OLD | NEW |
| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 # Run frogium client tests. This is a pretty quick test but | 138 # Run frogium client tests. This is a pretty quick test but |
| 139 # tends to uncover different issues due to the size/complexity | 139 # tends to uncover different issues due to the size/complexity |
| 140 # of the DOM APIs. | 140 # of the DOM APIs. |
| 141 cmd = test_cmd + ['--component=frogium', 'client'] | 141 cmd = test_cmd + ['--component=frogium', 'client'] |
| 142 RunCommand(*cmd, verbose=True) | 142 RunCommand(*cmd, verbose=True) |
| 143 | 143 |
| 144 # TODO(jimhug): Consider adding co19 back when it delivers more value | 144 # TODO(jimhug): Consider adding co19 back when it delivers more value |
| 145 # than pain. | 145 # than pain. |
| 146 # Run frogsh on most of the tests. | 146 # Run frogsh on most of the tests. |
| 147 cmd = test_cmd + ['--component=frogsh', 'language', 'corelib', | 147 cmd = test_cmd + ['--component=frogsh', 'language', 'corelib', |
| 148 'isolate', 'peg', 'frog', 'css', 'dartdoc'] | 148 'isolate', 'peg', 'frog', 'css', 'dartdoc', |
| 149 'frog_native'] |
| 149 RunCommand(*cmd, verbose=True) | 150 RunCommand(*cmd, verbose=True) |
| 150 | 151 |
| 151 # Run leg unit tests. | 152 # Run leg unit tests. |
| 152 cmd = test_cmd + ['--component=vm', 'leg'] | 153 cmd = test_cmd + ['--component=vm', 'leg'] |
| 153 RunCommand(*cmd, verbose=True) | 154 RunCommand(*cmd, verbose=True) |
| 154 | 155 |
| 155 # Leg does not implement checked mode yet. | 156 # Leg does not implement checked mode yet. |
| 156 test_cmd.remove('--checked') | 157 test_cmd.remove('--checked') |
| 157 | 158 |
| 158 cmd = test_cmd + ['--component=leg', 'leg_only'] | 159 cmd = test_cmd + ['--component=leg', 'leg_only'] |
| 159 RunCommand(*cmd, verbose=True) | 160 RunCommand(*cmd, verbose=True) |
| 160 | 161 |
| 162 cmd = test_cmd + ['--component=leg', 'frog_native'] |
| 163 RunCommand(*cmd, verbose=True) |
| 164 |
| 161 # Run leg on "built-in" tests. | 165 # Run leg on "built-in" tests. |
| 162 cmd = test_cmd + ['--component=leg'] | 166 cmd = test_cmd + ['--component=leg'] |
| 163 RunCommand(*cmd, verbose=True) | 167 RunCommand(*cmd, verbose=True) |
| 164 | 168 |
| 165 | 169 |
| 166 if __name__ == '__main__': | 170 if __name__ == '__main__': |
| 167 try: | 171 try: |
| 168 sys.exit(main()) | 172 sys.exit(main()) |
| 169 except Error as e: | 173 except Error as e: |
| 170 sys.stderr.write('%s\n' % e) | 174 sys.stderr.write('%s\n' % e) |
| 171 sys.exit(1) | 175 sys.exit(1) |
| OLD | NEW |