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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 RunCommand(*test_cmd, verbose=True) | 91 RunCommand(*test_cmd, verbose=True) |
92 else: | 92 else: |
93 if not options.leg_only: | 93 if not options.leg_only: |
94 # Run frog.py on the corelib tests, so we get some frog.py coverage. | 94 # Run frog.py on the corelib tests, so we get some frog.py coverage. |
95 cmd = test_cmd + ['--compiler=frog', '--runtime=d8', 'corelib'] | 95 cmd = test_cmd + ['--compiler=frog', '--runtime=d8', 'corelib'] |
96 RunCommand(*cmd, verbose=True) | 96 RunCommand(*cmd, verbose=True) |
97 | 97 |
98 # Run frogium client tests. This is a pretty quick test but | 98 # Run frogium client tests. This is a pretty quick test but |
99 # tends to uncover different issues due to the size/complexity | 99 # tends to uncover different issues due to the size/complexity |
100 # of the DOM APIs. | 100 # of the DOM APIs. |
101 cmd = test_cmd + ['--compiler=frog', '--runtime=drt', 'client'] | 101 cmd = test_cmd + ['--compiler=frog', '--runtime=drt', |
| 102 'dom', 'html', 'json', 'benchmark_smoke'] |
102 RunCommand(*cmd, verbose=True) | 103 RunCommand(*cmd, verbose=True) |
103 | 104 |
104 # Run frog on most of the tests. | 105 # Run frog on most of the tests. |
105 cmd = test_cmd + ['--compiler=frog', '--runtime=d8', | 106 cmd = test_cmd + ['--compiler=frog', '--runtime=d8', |
106 'language', 'corelib', | 107 'language', 'corelib', |
107 'isolate', 'peg', 'frog', 'css', 'frog_native'] | 108 'isolate', 'peg', 'frog', 'css', 'frog_native'] |
108 RunCommand(*cmd, verbose=True) | 109 RunCommand(*cmd, verbose=True) |
109 | 110 |
110 # Run the "utils" tests which includes dartdoc. Frog/leg changes often | 111 # Run the "utils" tests which includes dartdoc. Frog/leg changes often |
111 # break dartdoc and this tries to catch those. | 112 # break dartdoc and this tries to catch those. |
(...skipping 15 matching lines...) Expand all Loading... |
127 cmd = test_cmd + ['--compiler=dart2js', '--runtime=d8,drt'] | 128 cmd = test_cmd + ['--compiler=dart2js', '--runtime=d8,drt'] |
128 RunCommand(*cmd, verbose=True) | 129 RunCommand(*cmd, verbose=True) |
129 | 130 |
130 | 131 |
131 if __name__ == '__main__': | 132 if __name__ == '__main__': |
132 try: | 133 try: |
133 sys.exit(main()) | 134 sys.exit(main()) |
134 except Error as e: | 135 except Error as e: |
135 sys.stderr.write('%s\n' % e) | 136 sys.stderr.write('%s\n' % e) |
136 sys.exit(1) | 137 sys.exit(1) |
OLD | NEW |