| 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 from testrunner.objects import context | 47 from testrunner.objects import context |
| 48 | 48 |
| 49 | 49 |
| 50 ARCH_GUESS = utils.DefaultArch() | 50 ARCH_GUESS = utils.DefaultArch() |
| 51 DEFAULT_TESTS = ["lexer", "mjsunit", "cctest"] | 51 DEFAULT_TESTS = ["lexer", "mjsunit", "cctest"] |
| 52 TIMEOUT_DEFAULT = 60 | 52 TIMEOUT_DEFAULT = 60 |
| 53 TIMEOUT_SCALEFACTOR = {"debug" : 4, | 53 TIMEOUT_SCALEFACTOR = {"debug" : 4, |
| 54 "release" : 1 } | 54 "release" : 1 } |
| 55 | 55 |
| 56 # Use this to run several variants of the tests. | 56 # Use this to run several variants of the tests. |
| 57 VARIANT_FLAGS = [[]] | 57 |
| 58 VARIANTS = ["default"] |
| 59 |
| 60 VARIANT_FLAGS = { |
| 61 "default": [] |
| 62 } |
| 63 |
| 58 MODE_FLAGS = { | 64 MODE_FLAGS = { |
| 59 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination", | 65 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination", |
| 60 "--nofold-constants", "--enable-slow-asserts", | 66 "--nofold-constants", "--enable-slow-asserts", |
| 61 "--debug-code", "--verify-heap"], | 67 "--debug-code", "--verify-heap"], |
| 62 "release" : ["--nobreak-on-abort", "--nodead-code-elimination", | 68 "release" : ["--nobreak-on-abort", "--nodead-code-elimination", |
| 63 "--nofold-constants"]} | 69 "--nofold-constants"]} |
| 64 | 70 |
| 65 SUPPORTED_ARCHS = ["android_arm", | 71 SUPPORTED_ARCHS = ["android_arm", |
| 66 "android_ia32", | 72 "android_ia32", |
| 67 "arm", | 73 "arm", |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 except KeyboardInterrupt: | 452 except KeyboardInterrupt: |
| 447 raise | 453 raise |
| 448 | 454 |
| 449 if options.time: | 455 if options.time: |
| 450 verbose.PrintTestDurations(suites, overall_duration) | 456 verbose.PrintTestDurations(suites, overall_duration) |
| 451 return exit_code | 457 return exit_code |
| 452 | 458 |
| 453 | 459 |
| 454 if __name__ == "__main__": | 460 if __name__ == "__main__": |
| 455 sys.exit(Main()) | 461 sys.exit(Main()) |
| OLD | NEW |