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

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: merge with latest changes 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 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 options.component = 'vm,dartc' 1236 options.component = 'vm,dartc'
1237 1237
1238 # By default we run with a higher timeout setting in when running on 1238 # By default we run with a higher timeout setting in when running on
1239 # a simulated architecture and in debug mode. 1239 # a simulated architecture and in debug mode.
1240 if not options.timeout: 1240 if not options.timeout:
1241 options.timeout = TIMEOUT_SECS 1241 options.timeout = TIMEOUT_SECS
1242 if 'dartc' in options.component: 1242 if 'dartc' in options.component:
1243 options.timeout *= 4 1243 options.timeout *= 4
1244 elif 'chromium' in options.component: 1244 elif 'chromium' in options.component:
1245 options.timeout *= 4 1245 options.timeout *= 4
1246 elif 'frogium' in options.component:
1247 options.timeout *= 4
1246 elif 'dartium' in options.component: 1248 elif 'dartium' in options.component:
1247 options.timeout *= 4 1249 options.timeout *= 4
1248 elif 'debug' in options.mode: 1250 elif 'debug' in options.mode:
1249 options.timeout *= 2 1251 options.timeout *= 2
1250 options.mode = options.mode.split(',') 1252 options.mode = options.mode.split(',')
1251 options.arch = options.arch.split(',') 1253 options.arch = options.arch.split(',')
1252 options.component = options.component.split(',') 1254 options.component = options.component.split(',')
1253 for mode in options.mode: 1255 for mode in options.mode:
1254 if not mode in ['debug', 'release']: 1256 if not mode in ['debug', 'release']:
1255 print 'Unknown mode %s' % mode 1257 print 'Unknown mode %s' % mode
1256 return False 1258 return False
1257 for arch in options.arch: 1259 for arch in options.arch:
1258 if not arch in ['ia32', 'x64', 'simarm', 'arm']: 1260 if not arch in ['ia32', 'x64', 'simarm', 'arm']:
1259 print 'Unknown arch %s' % arch 1261 print 'Unknown arch %s' % arch
1260 return False 1262 return False
1261 for component in options.component: 1263 for component in options.component:
1262 if not component in ['vm', 'dartc', 'frog', 'frogsh', 'leg', 1264 if not component in ['vm', 'dartc', 'frog', 'frogsh', 'leg',
1263 'chromium', 'dartium', 'webdriver']: 1265 'chromium', 'dartium', 'frogium', 'webdriver']:
1264 print 'Unknown component %s' % component 1266 print 'Unknown component %s' % component
1265 return False 1267 return False
1266 options.flags = [] 1268 options.flags = []
1267 options.flags.append('--ignore-unrecognized-flags') 1269 options.flags.append('--ignore-unrecognized-flags')
1268 if options.checked: 1270 if options.checked:
1269 options.flags.append('--enable_asserts') 1271 options.flags.append('--enable_asserts')
1270 options.flags.append('--enable_type_checks') 1272 options.flags.append('--enable_type_checks')
1271 if options.optimize: 1273 if options.optimize:
1272 options.flags.append('--optimize') 1274 options.flags.append('--optimize')
1273 for flag in options.flag: 1275 for flag in options.flag:
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 for entry in timed_tests[:20]: 1525 for entry in timed_tests[:20]:
1524 t = FormatTime(entry.duration) 1526 t = FormatTime(entry.duration)
1525 print '%4i (%s) %s' % (index, t, entry.GetLabel()) 1527 print '%4i (%s) %s' % (index, t, entry.GetLabel())
1526 index += 1 1528 index += 1
1527 1529
1528 return result 1530 return result
1529 1531
1530 1532
1531 if __name__ == '__main__': 1533 if __name__ == '__main__':
1532 sys.exit(Main()) 1534 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/run.py ('k') | tools/testing/architecture.py » ('j') | tools/testing/architecture.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698