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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 | 81 |
82 TIMEOUT_DEFAULT = 60 | 82 TIMEOUT_DEFAULT = 60 |
83 TIMEOUT_SCALEFACTOR = {"debug" : 4, | 83 TIMEOUT_SCALEFACTOR = {"debug" : 4, |
84 "release" : 1 } | 84 "release" : 1 } |
85 | 85 |
86 # Use this to run several variants of the tests. | 86 # Use this to run several variants of the tests. |
87 VARIANT_FLAGS = { | 87 VARIANT_FLAGS = { |
88 "default": [], | 88 "default": [], |
89 "stress": ["--stress-opt", "--always-opt"], | 89 "stress": ["--stress-opt", "--always-opt"], |
90 "turbofan": ["--turbo-filter=*", "--always-opt"], | 90 "turbofan": ["--turbo-asm", "--turbo-filter=*", "--always-opt"], |
91 "nocrankshaft": ["--nocrankshaft"]} | 91 "nocrankshaft": ["--nocrankshaft"]} |
92 | 92 |
93 VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"] | 93 VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"] |
94 | 94 |
95 MODE_FLAGS = { | 95 MODE_FLAGS = { |
96 "debug" : ["--nohard-abort", "--nodead-code-elimination", | 96 "debug" : ["--nohard-abort", "--nodead-code-elimination", |
97 "--nofold-constants", "--enable-slow-asserts", | 97 "--nofold-constants", "--enable-slow-asserts", |
98 "--debug-code", "--verify-heap"], | 98 "--debug-code", "--verify-heap"], |
99 "release" : ["--nohard-abort", "--nodead-code-elimination", | 99 "release" : ["--nohard-abort", "--nodead-code-elimination", |
100 "--nofold-constants"]} | 100 "--nofold-constants"]} |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 exit_code = runner.Run(options.j) | 577 exit_code = runner.Run(options.j) |
578 overall_duration = time.time() - start_time | 578 overall_duration = time.time() - start_time |
579 | 579 |
580 if options.time: | 580 if options.time: |
581 verbose.PrintTestDurations(suites, overall_duration) | 581 verbose.PrintTestDurations(suites, overall_duration) |
582 return exit_code | 582 return exit_code |
583 | 583 |
584 | 584 |
585 if __name__ == "__main__": | 585 if __name__ == "__main__": |
586 sys.exit(Main()) | 586 sys.exit(Main()) |
OLD | NEW |