| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 options.extra_flags) | 305 options.extra_flags) |
| 306 | 306 |
| 307 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 307 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
| 308 arch in ['a64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS | 308 arch in ['a64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS |
| 309 # Find available test suites and read test cases from them. | 309 # Find available test suites and read test cases from them. |
| 310 variables = { | 310 variables = { |
| 311 "mode": mode, | 311 "mode": mode, |
| 312 "arch": arch, | 312 "arch": arch, |
| 313 "system": utils.GuessOS(), | 313 "system": utils.GuessOS(), |
| 314 "isolates": options.isolates, | 314 "isolates": options.isolates, |
| 315 "simulator_run": simulator_run | 315 "simulator_run": simulator_run, |
| 316 "deopt_fuzzer": False, |
| 316 } | 317 } |
| 317 all_tests = [] | 318 all_tests = [] |
| 318 num_tests = 0 | 319 num_tests = 0 |
| 319 test_id = 0 | 320 test_id = 0 |
| 320 for s in suites: | 321 for s in suites: |
| 321 s.ReadStatusFile(variables) | 322 s.ReadStatusFile(variables) |
| 322 s.ReadTestCases(ctx) | 323 s.ReadTestCases(ctx) |
| 323 if len(args) > 0: | 324 if len(args) > 0: |
| 324 s.FilterTestCasesByArgs(args) | 325 s.FilterTestCasesByArgs(args) |
| 325 all_tests += s.tests | 326 all_tests += s.tests |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 except KeyboardInterrupt: | 386 except KeyboardInterrupt: |
| 386 return 1 | 387 return 1 |
| 387 | 388 |
| 388 if options.time: | 389 if options.time: |
| 389 verbose.PrintTestDurations(suites, overall_duration) | 390 verbose.PrintTestDurations(suites, overall_duration) |
| 390 return exit_code | 391 return exit_code |
| 391 | 392 |
| 392 | 393 |
| 393 if __name__ == "__main__": | 394 if __name__ == "__main__": |
| 394 sys.exit(Main()) | 395 sys.exit(Main()) |
| OLD | NEW |