| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 if arch in SLOW_ARCHS: | 306 if arch in SLOW_ARCHS: |
| 307 timeout = 2 * TIMEOUT_DEFAULT; | 307 timeout = 2 * TIMEOUT_DEFAULT; |
| 308 else: | 308 else: |
| 309 timeout = TIMEOUT_DEFAULT; | 309 timeout = TIMEOUT_DEFAULT; |
| 310 | 310 |
| 311 timeout *= TIMEOUT_SCALEFACTOR[mode] | 311 timeout *= TIMEOUT_SCALEFACTOR[mode] |
| 312 ctx = context.Context(arch, mode, shell_dir, | 312 ctx = context.Context(arch, mode, shell_dir, |
| 313 mode_flags, options.verbose, | 313 mode_flags, options.verbose, |
| 314 timeout, options.isolates, | 314 timeout, options.isolates, |
| 315 options.command_prefix, | 315 options.command_prefix, |
| 316 options.extra_flags) | 316 options.extra_flags, |
| 317 options.no_i18n) |
| 317 | 318 |
| 318 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 319 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
| 319 arch in ['a64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS | 320 arch in ['a64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS |
| 320 # Find available test suites and read test cases from them. | 321 # Find available test suites and read test cases from them. |
| 321 variables = { | 322 variables = { |
| 322 "mode": mode, | 323 "mode": mode, |
| 323 "arch": arch, | 324 "arch": arch, |
| 324 "system": utils.GuessOS(), | 325 "system": utils.GuessOS(), |
| 325 "isolates": options.isolates, | 326 "isolates": options.isolates, |
| 326 "simulator_run": simulator_run, | 327 "simulator_run": simulator_run, |
| 327 "deopt_fuzzer": False, | 328 "deopt_fuzzer": False, |
| 329 "no_i18n": options.no_i18n, |
| 328 } | 330 } |
| 329 all_tests = [] | 331 all_tests = [] |
| 330 num_tests = 0 | 332 num_tests = 0 |
| 331 test_id = 0 | 333 test_id = 0 |
| 332 for s in suites: | 334 for s in suites: |
| 333 s.ReadStatusFile(variables) | 335 s.ReadStatusFile(variables) |
| 334 s.ReadTestCases(ctx) | 336 s.ReadTestCases(ctx) |
| 335 if len(args) > 0: | 337 if len(args) > 0: |
| 336 s.FilterTestCasesByArgs(args) | 338 s.FilterTestCasesByArgs(args) |
| 337 all_tests += s.tests | 339 all_tests += s.tests |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 except KeyboardInterrupt: | 399 except KeyboardInterrupt: |
| 398 return 1 | 400 return 1 |
| 399 | 401 |
| 400 if options.time: | 402 if options.time: |
| 401 verbose.PrintTestDurations(suites, overall_duration) | 403 verbose.PrintTestDurations(suites, overall_duration) |
| 402 return exit_code | 404 return exit_code |
| 403 | 405 |
| 404 | 406 |
| 405 if __name__ == "__main__": | 407 if __name__ == "__main__": |
| 406 sys.exit(Main()) | 408 sys.exit(Main()) |
| OLD | NEW |