| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"] | 49 DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"] |
| 50 TIMEOUT_DEFAULT = 60 | 50 TIMEOUT_DEFAULT = 60 |
| 51 TIMEOUT_SCALEFACTOR = {"debug" : 4, | 51 TIMEOUT_SCALEFACTOR = {"debug" : 4, |
| 52 "release" : 1 } | 52 "release" : 1 } |
| 53 | 53 |
| 54 # Use this to run several variants of the tests. | 54 # Use this to run several variants of the tests. |
| 55 VARIANT_FLAGS = [[], | 55 VARIANT_FLAGS = [[], |
| 56 ["--stress-opt", "--always-opt"], | 56 ["--stress-opt", "--always-opt"], |
| 57 ["--nocrankshaft"]] | 57 ["--nocrankshaft"]] |
| 58 MODE_FLAGS = { | 58 MODE_FLAGS = { |
| 59 "debug" : ["--nobreak-on-abort", "--enable-slow-asserts", | 59 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination", |
| 60 "--debug-code", "--verify-heap"], | 60 "--enable-slow-asserts", "--debug-code", "--verify-heap"], |
| 61 "release" : ["--nobreak-on-abort"]} | 61 "release" : ["--nobreak-on-abort", "--nodead-code-elimination"]} |
| 62 | 62 |
| 63 | 63 |
| 64 def BuildOptions(): | 64 def BuildOptions(): |
| 65 result = optparse.OptionParser() | 65 result = optparse.OptionParser() |
| 66 result.add_option("--arch", | 66 result.add_option("--arch", |
| 67 help=("The architecture to run tests for, " | 67 help=("The architecture to run tests for, " |
| 68 "'auto' or 'native' for auto-detect"), | 68 "'auto' or 'native' for auto-detect"), |
| 69 default="ia32,x64,arm") | 69 default="ia32,x64,arm") |
| 70 result.add_option("--arch-and-mode", | 70 result.add_option("--arch-and-mode", |
| 71 help="Architecture and mode in the format 'arch.mode'", | 71 help="Architecture and mode in the format 'arch.mode'", |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 except KeyboardInterrupt: | 346 except KeyboardInterrupt: |
| 347 return 1 | 347 return 1 |
| 348 | 348 |
| 349 if options.time: | 349 if options.time: |
| 350 verbose.PrintTestDurations(suites, overall_duration) | 350 verbose.PrintTestDurations(suites, overall_duration) |
| 351 return exit_code | 351 return exit_code |
| 352 | 352 |
| 353 | 353 |
| 354 if __name__ == "__main__": | 354 if __name__ == "__main__": |
| 355 sys.exit(Main()) | 355 sys.exit(Main()) |
| OLD | NEW |