| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, 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 """Test driver for the Dart project used by continuous build and developers.""" | 8 """Test driver for the Dart project used by continuous build and developers.""" |
| 9 | 9 |
| 10 | 10 |
| (...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 for mode in options.mode: | 1218 for mode in options.mode: |
| 1219 if not mode in ['debug', 'release']: | 1219 if not mode in ['debug', 'release']: |
| 1220 print 'Unknown mode %s' % mode | 1220 print 'Unknown mode %s' % mode |
| 1221 return False | 1221 return False |
| 1222 for arch in options.arch: | 1222 for arch in options.arch: |
| 1223 if not arch in ['ia32', 'x64', 'simarm', 'arm', 'dartc', 'dartium', | 1223 if not arch in ['ia32', 'x64', 'simarm', 'arm', 'dartc', 'dartium', |
| 1224 'chromium']: | 1224 'chromium']: |
| 1225 print 'Unknown arch %s' % arch | 1225 print 'Unknown arch %s' % arch |
| 1226 return False | 1226 return False |
| 1227 options.flags = [] | 1227 options.flags = [] |
| 1228 if (arch == 'dartc' or arch == 'chromium') and mode == 'release': | |
| 1229 options.flags.append('--optimize') | |
| 1230 options.flags.append('--ignore-unrecognized-flags') | 1228 options.flags.append('--ignore-unrecognized-flags') |
| 1231 if options.checked: | 1229 if options.checked: |
| 1232 options.flags.append('--enable_asserts') | 1230 options.flags.append('--enable_asserts') |
| 1233 options.flags.append('--enable_type_checks') | 1231 options.flags.append('--enable_type_checks') |
| 1234 if options.optimize: | 1232 if options.optimize: |
| 1235 options.flags.append('--optimize') | 1233 options.flags.append('--optimize') |
| 1236 for flag in options.flag: | 1234 for flag in options.flag: |
| 1237 options.flags.append(flag) | 1235 options.flags.append(flag) |
| 1238 if options.verbose: | 1236 if options.verbose: |
| 1239 print 'Flags on the command line:' | 1237 print 'Flags on the command line:' |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 for entry in timed_tests[:20]: | 1479 for entry in timed_tests[:20]: |
| 1482 t = FormatTime(entry.duration) | 1480 t = FormatTime(entry.duration) |
| 1483 print '%4i (%s) %s' % (index, t, entry.GetLabel()) | 1481 print '%4i (%s) %s' % (index, t, entry.GetLabel()) |
| 1484 index += 1 | 1482 index += 1 |
| 1485 | 1483 |
| 1486 return result | 1484 return result |
| 1487 | 1485 |
| 1488 | 1486 |
| 1489 if __name__ == '__main__': | 1487 if __name__ == '__main__': |
| 1490 sys.exit(Main()) | 1488 sys.exit(Main()) |
| OLD | NEW |