OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 ARCH_GUESS = utils.DefaultArch() | 60 ARCH_GUESS = utils.DefaultArch() |
61 | 61 |
62 # Map of test name synonyms to lists of test suites. Should be ordered by | 62 # Map of test name synonyms to lists of test suites. Should be ordered by |
63 # expected runtimes (suites with slow test cases first). These groups are | 63 # expected runtimes (suites with slow test cases first). These groups are |
64 # invoked in seperate steps on the bots. | 64 # invoked in seperate steps on the bots. |
65 TEST_MAP = { | 65 TEST_MAP = { |
66 # This needs to stay in sync with test/bot_default.isolate. | 66 # This needs to stay in sync with test/bot_default.isolate. |
67 "bot_default": [ | 67 "bot_default": [ |
68 "mjsunit", | 68 "mjsunit", |
| 69 "cctest", |
69 "debugger", | 70 "debugger", |
70 "cctest", | 71 "inspector", |
71 "webkit", | 72 "webkit", |
72 "inspector", | |
73 "fuzzer", | 73 "fuzzer", |
74 "message", | 74 "message", |
75 "preparser", | 75 "preparser", |
76 "intl", | 76 "intl", |
77 "unittests", | 77 "unittests", |
78 ], | 78 ], |
79 # This needs to stay in sync with test/default.isolate. | 79 # This needs to stay in sync with test/default.isolate. |
80 "default": [ | 80 "default": [ |
81 "mjsunit", | 81 "mjsunit", |
| 82 "cctest", |
82 "debugger", | 83 "debugger", |
83 "cctest", | 84 "inspector", |
84 "fuzzer", | 85 "fuzzer", |
85 "message", | 86 "message", |
86 "preparser", | 87 "preparser", |
87 "intl", | 88 "intl", |
88 "unittests", | 89 "unittests", |
89 ], | 90 ], |
90 # This needs to stay in sync with test/optimize_for_size.isolate. | 91 # This needs to stay in sync with test/optimize_for_size.isolate. |
91 "optimize_for_size": [ | 92 "optimize_for_size": [ |
92 "mjsunit", | 93 "mjsunit", |
| 94 "cctest", |
93 "debugger", | 95 "debugger", |
94 "cctest", | 96 "inspector", |
95 "webkit", | 97 "webkit", |
96 "inspector", | |
97 "intl", | 98 "intl", |
98 ], | 99 ], |
99 "unittests": [ | 100 "unittests": [ |
100 "unittests", | 101 "unittests", |
101 ], | 102 ], |
102 } | 103 } |
103 | 104 |
104 TIMEOUT_DEFAULT = 60 | 105 TIMEOUT_DEFAULT = 60 |
105 | 106 |
106 VARIANTS = ["default", "turbofan", "ignition_staging"] | 107 VARIANTS = ["default", "turbofan", "ignition_staging"] |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 return False | 605 return False |
605 return True | 606 return True |
606 if not CheckTestMode("slow test", options.slow_tests): | 607 if not CheckTestMode("slow test", options.slow_tests): |
607 return False | 608 return False |
608 if not CheckTestMode("pass|fail test", options.pass_fail_tests): | 609 if not CheckTestMode("pass|fail test", options.pass_fail_tests): |
609 return False | 610 return False |
610 if options.no_i18n: | 611 if options.no_i18n: |
611 TEST_MAP["bot_default"].remove("intl") | 612 TEST_MAP["bot_default"].remove("intl") |
612 TEST_MAP["default"].remove("intl") | 613 TEST_MAP["default"].remove("intl") |
613 if not options.enable_inspector: | 614 if not options.enable_inspector: |
| 615 TEST_MAP["default"].remove("inspector") |
614 TEST_MAP["bot_default"].remove("inspector") | 616 TEST_MAP["bot_default"].remove("inspector") |
615 TEST_MAP["optimize_for_size"].remove("inspector") | 617 TEST_MAP["optimize_for_size"].remove("inspector") |
616 TEST_MAP["default"].remove("debugger") | 618 TEST_MAP["default"].remove("debugger") |
617 TEST_MAP["bot_default"].remove("debugger") | 619 TEST_MAP["bot_default"].remove("debugger") |
618 TEST_MAP["optimize_for_size"].remove("debugger") | 620 TEST_MAP["optimize_for_size"].remove("debugger") |
619 return True | 621 return True |
620 | 622 |
621 | 623 |
622 def ShardTests(tests, options): | 624 def ShardTests(tests, options): |
623 # Read gtest shard configuration from environment (e.g. set by swarming). | 625 # Read gtest shard configuration from environment (e.g. set by swarming). |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 "--coverage-dir=%s" % options.sancov_dir]) | 919 "--coverage-dir=%s" % options.sancov_dir]) |
918 except: | 920 except: |
919 print >> sys.stderr, "Error: Merging sancov files failed." | 921 print >> sys.stderr, "Error: Merging sancov files failed." |
920 exit_code = 1 | 922 exit_code = 1 |
921 | 923 |
922 return exit_code | 924 return exit_code |
923 | 925 |
924 | 926 |
925 if __name__ == "__main__": | 927 if __name__ == "__main__": |
926 sys.exit(Main()) | 928 sys.exit(Main()) |
OLD | NEW |