Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 | 47 |
| 48 | 48 |
| 49 ARCH_GUESS = utils.DefaultArch() | 49 ARCH_GUESS = utils.DefaultArch() |
| 50 DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"] | 50 DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"] |
| 51 TIMEOUT_DEFAULT = 60 | 51 TIMEOUT_DEFAULT = 60 |
| 52 TIMEOUT_SCALEFACTOR = {"debug" : 4, | 52 TIMEOUT_SCALEFACTOR = {"debug" : 4, |
| 53 "release" : 1 } | 53 "release" : 1 } |
| 54 | 54 |
| 55 # Use this to run several variants of the tests. | 55 # Use this to run several variants of the tests. |
| 56 VARIANT_FLAGS = [[], | 56 VARIANT_FLAGS = [[], |
| 57 ["--optimize-for-size"], | |
|
Sven Panne
2013/10/29 12:43:31
I am not sure if this is the right way to proceed,
rmcilroy
2013/10/29 14:02:55
I realize this will increase test time by about 25
| |
| 57 ["--stress-opt", "--always-opt"], | 58 ["--stress-opt", "--always-opt"], |
| 58 ["--nocrankshaft"]] | 59 ["--nocrankshaft"]] |
| 59 MODE_FLAGS = { | 60 MODE_FLAGS = { |
| 60 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination", | 61 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination", |
| 61 "--nofold-constants", "--enable-slow-asserts", | 62 "--nofold-constants", "--enable-slow-asserts", |
| 62 "--debug-code", "--verify-heap"], | 63 "--debug-code", "--verify-heap"], |
| 63 "release" : ["--nobreak-on-abort", "--nodead-code-elimination", | 64 "release" : ["--nobreak-on-abort", "--nodead-code-elimination", |
| 64 "--nofold-constants"]} | 65 "--nofold-constants"]} |
| 65 | 66 |
| 66 SUPPORTED_ARCHS = ["android_arm", | 67 SUPPORTED_ARCHS = ["android_arm", |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 391 except KeyboardInterrupt: | 392 except KeyboardInterrupt: |
| 392 return 1 | 393 return 1 |
| 393 | 394 |
| 394 if options.time: | 395 if options.time: |
| 395 verbose.PrintTestDurations(suites, overall_duration) | 396 verbose.PrintTestDurations(suites, overall_duration) |
| 396 return exit_code | 397 return exit_code |
| 397 | 398 |
| 398 | 399 |
| 399 if __name__ == "__main__": | 400 if __name__ == "__main__": |
| 400 sys.exit(Main()) | 401 sys.exit(Main()) |
| OLD | NEW |