Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2008 the V8 project authors. All rights reserved. | 3 # Copyright 2008 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1254 unclassified_tests = [ ] | 1254 unclassified_tests = [ ] |
| 1255 globally_unused_rules = None | 1255 globally_unused_rules = None |
| 1256 for path in paths: | 1256 for path in paths: |
| 1257 for mode in options.mode: | 1257 for mode in options.mode: |
| 1258 if not exists(context.GetVm(mode)): | 1258 if not exists(context.GetVm(mode)): |
| 1259 print "Can't find shell executable: '%s'" % context.GetVm(mode) | 1259 print "Can't find shell executable: '%s'" % context.GetVm(mode) |
| 1260 continue | 1260 continue |
| 1261 env = { | 1261 env = { |
| 1262 'mode': mode, | 1262 'mode': mode, |
| 1263 'system': utils.GuessOS(), | 1263 'system': utils.GuessOS(), |
| 1264 'arch': options.arch | 1264 'arch': options.arch, |
| 1265 'simulator': options.simulator | |
|
Søren Thygesen Gjesse
2009/03/31 12:58:33
Is this to "replace" -S simulator=arm?
| |
| 1265 } | 1266 } |
| 1266 test_list = root.ListTests([], path, context, mode) | 1267 test_list = root.ListTests([], path, context, mode) |
| 1267 unclassified_tests += test_list | 1268 unclassified_tests += test_list |
| 1268 (cases, unused_rules, all_outcomes) = config.ClassifyTests(test_list, env) | 1269 (cases, unused_rules, all_outcomes) = config.ClassifyTests(test_list, env) |
| 1269 if globally_unused_rules is None: | 1270 if globally_unused_rules is None: |
| 1270 globally_unused_rules = set(unused_rules) | 1271 globally_unused_rules = set(unused_rules) |
| 1271 else: | 1272 else: |
| 1272 globally_unused_rules = globally_unused_rules.intersection(unused_rules) | 1273 globally_unused_rules = globally_unused_rules.intersection(unused_rules) |
| 1273 all_cases += cases | 1274 all_cases += cases |
| 1274 all_unused.append(unused_rules) | 1275 all_unused.append(unused_rules) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1320 for entry in timed_tests[:20]: | 1321 for entry in timed_tests[:20]: |
| 1321 t = FormatTime(entry.duration) | 1322 t = FormatTime(entry.duration) |
| 1322 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1323 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
| 1323 index += 1 | 1324 index += 1 |
| 1324 | 1325 |
| 1325 return result | 1326 return result |
| 1326 | 1327 |
| 1327 | 1328 |
| 1328 if __name__ == '__main__': | 1329 if __name__ == '__main__': |
| 1329 sys.exit(Main()) | 1330 sys.exit(Main()) |
| OLD | NEW |