Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: tools/test.py

Issue 8523024: Adding frogium: a frog-chromium architecture that runs tests in chromium that (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 options.component = 'vm,dartc' 1235 options.component = 'vm,dartc'
1236 1236
1237 # By default we run with a higher timeout setting in when running on 1237 # By default we run with a higher timeout setting in when running on
1238 # a simulated architecture and in debug mode. 1238 # a simulated architecture and in debug mode.
1239 if not options.timeout: 1239 if not options.timeout:
1240 options.timeout = TIMEOUT_SECS 1240 options.timeout = TIMEOUT_SECS
1241 if 'dartc' in options.component: 1241 if 'dartc' in options.component:
1242 options.timeout *= 4 1242 options.timeout *= 4
1243 elif 'chromium' in options.component: 1243 elif 'chromium' in options.component:
1244 options.timeout *= 4 1244 options.timeout *= 4
1245 elif 'frogium' in options.component:
1246 options.timeout *= 4
1245 elif 'dartium' in options.component: 1247 elif 'dartium' in options.component:
1246 options.timeout *= 4 1248 options.timeout *= 4
1247 elif 'debug' in options.mode: 1249 elif 'debug' in options.mode:
1248 options.timeout *= 2 1250 options.timeout *= 2
1249 options.mode = options.mode.split(',') 1251 options.mode = options.mode.split(',')
1250 options.arch = options.arch.split(',') 1252 options.arch = options.arch.split(',')
1251 options.component = options.component.split(',') 1253 options.component = options.component.split(',')
1252 for mode in options.mode: 1254 for mode in options.mode:
1253 if not mode in ['debug', 'release']: 1255 if not mode in ['debug', 'release']:
1254 print 'Unknown mode %s' % mode 1256 print 'Unknown mode %s' % mode
1255 return False 1257 return False
1256 for arch in options.arch: 1258 for arch in options.arch:
1257 if not arch in ['ia32', 'x64', 'simarm', 'arm']: 1259 if not arch in ['ia32', 'x64', 'simarm', 'arm']:
1258 print 'Unknown arch %s' % arch 1260 print 'Unknown arch %s' % arch
1259 return False 1261 return False
1260 for component in options.component: 1262 for component in options.component:
1261 if not component in ['vm', 'dartc', 'frog', 'frogsh', 'leg', 1263 if not component in ['vm', 'dartc', 'frog', 'frogsh', 'leg',
1262 'chromium', 'dartium']: 1264 'chromium', 'dartium', 'frogium']:
1263 print 'Unknown component %s' % component 1265 print 'Unknown component %s' % component
1264 return False 1266 return False
1265 options.flags = [] 1267 options.flags = []
1266 options.flags.append('--ignore-unrecognized-flags') 1268 options.flags.append('--ignore-unrecognized-flags')
1267 if options.checked: 1269 if options.checked:
1268 options.flags.append('--enable_asserts') 1270 options.flags.append('--enable_asserts')
1269 options.flags.append('--enable_type_checks') 1271 options.flags.append('--enable_type_checks')
1270 if options.optimize: 1272 if options.optimize:
1271 options.flags.append('--optimize') 1273 options.flags.append('--optimize')
1272 for flag in options.flag: 1274 for flag in options.flag:
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 for entry in timed_tests[:20]: 1524 for entry in timed_tests[:20]:
1523 t = FormatTime(entry.duration) 1525 t = FormatTime(entry.duration)
1524 print '%4i (%s) %s' % (index, t, entry.GetLabel()) 1526 print '%4i (%s) %s' % (index, t, entry.GetLabel())
1525 index += 1 1527 index += 1
1526 1528
1527 return result 1529 return result
1528 1530
1529 1531
1530 if __name__ == '__main__': 1532 if __name__ == '__main__':
1531 sys.exit(Main()) 1533 sys.exit(Main())
OLDNEW
« frog/value.dart ('K') | « tools/run.py ('k') | tools/testing/architecture.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698