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

Side by Side Diff: tools/run.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 """ 8 """
9 Runs a Dart unit test in different configurations: dartium, chromium, ia32, x64, 9 Runs a Dart unit test in different configurations: dartium, chromium, ia32, x64,
10 arm, simarm, and dartc. Example: 10 arm, simarm, and dartc. Example:
11 11
12 run.py --arch=dartium --mode=release --test=Test.dart 12 run.py --arch=dartium --mode=release --test=Test.dart
13 """ 13 """
14 14
15 import optparse 15 import optparse
16 import sys 16 import sys
17 17
18 from testing import architecture 18 from testing import architecture
19 import utils 19 import utils
20 20
21 21
22 def AreOptionsValid(options): 22 def AreOptionsValid(options):
23 if not options.arch in ['ia32', 'x64', 'arm', 'simarm', 'dartc', 'dartium', 23 if not options.arch in ['ia32', 'x64', 'arm', 'simarm', 'dartc', 'dartium',
24 'chromium']: 24 'chromium', 'frogium']:
25 print 'Unknown arch %s' % options.arch 25 print 'Unknown arch %s' % options.arch
26 return None 26 return None
27 27
28 return options.test 28 return options.test
29 29
30 30
31 def Flags(): 31 def Flags():
32 result = optparse.OptionParser() 32 result = optparse.OptionParser()
33 result.add_option("-v", "--verbose", 33 result.add_option("-v", "--verbose",
34 help="Print messages", 34 help="Print messages",
(...skipping 22 matching lines...) Expand all
57 if not AreOptionsValid(options): 57 if not AreOptionsValid(options):
58 parser.print_help() 58 parser.print_help()
59 return 1 59 return 1
60 60
61 return architecture.GetArchitecture(options.arch, options.mode, 61 return architecture.GetArchitecture(options.arch, options.mode,
62 options.test).RunTest(options.verbose) 62 options.test).RunTest(options.verbose)
63 63
64 64
65 if __name__ == '__main__': 65 if __name__ == '__main__':
66 sys.exit(Main()) 66 sys.exit(Main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698