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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 all_unused = [ ] | 1435 all_unused = [ ] |
1436 unclassified_tests = [ ] | 1436 unclassified_tests = [ ] |
1437 globally_unused_rules = None | 1437 globally_unused_rules = None |
1438 for path in paths: | 1438 for path in paths: |
1439 for mode in options.mode: | 1439 for mode in options.mode: |
1440 env = { | 1440 env = { |
1441 'mode': mode, | 1441 'mode': mode, |
1442 'system': utils.GuessOS(), | 1442 'system': utils.GuessOS(), |
1443 'arch': options.arch, | 1443 'arch': options.arch, |
1444 'simulator': options.simulator, | 1444 'simulator': options.simulator, |
1445 'crankshaft': options.crankshaft | 1445 'crankshaft': options.crankshaft, |
| 1446 'isolates': options.isolates |
1446 } | 1447 } |
1447 test_list = root.ListTests([], path, context, mode, []) | 1448 test_list = root.ListTests([], path, context, mode, []) |
1448 unclassified_tests += test_list | 1449 unclassified_tests += test_list |
1449 (cases, unused_rules, all_outcomes) = config.ClassifyTests(test_list, env) | 1450 (cases, unused_rules, all_outcomes) = config.ClassifyTests(test_list, env) |
1450 if globally_unused_rules is None: | 1451 if globally_unused_rules is None: |
1451 globally_unused_rules = set(unused_rules) | 1452 globally_unused_rules = set(unused_rules) |
1452 else: | 1453 else: |
1453 globally_unused_rules = globally_unused_rules.intersection(unused_rules) | 1454 globally_unused_rules = globally_unused_rules.intersection(unused_rules) |
1454 all_cases += ShardTests(cases, options) | 1455 all_cases += ShardTests(cases, options) |
1455 all_unused.append(unused_rules) | 1456 all_unused.append(unused_rules) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 for entry in timed_tests[:20]: | 1507 for entry in timed_tests[:20]: |
1507 t = FormatTime(entry.duration) | 1508 t = FormatTime(entry.duration) |
1508 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1509 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1509 index += 1 | 1510 index += 1 |
1510 | 1511 |
1511 return result | 1512 return result |
1512 | 1513 |
1513 | 1514 |
1514 if __name__ == '__main__': | 1515 if __name__ == '__main__': |
1515 sys.exit(Main()) | 1516 sys.exit(Main()) |
OLD | NEW |