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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 options.no_i18n, | 493 options.no_i18n, |
494 options.random_seed, | 494 options.random_seed, |
495 options.no_sorting, | 495 options.no_sorting, |
496 options.rerun_failures_count, | 496 options.rerun_failures_count, |
497 options.rerun_failures_max, | 497 options.rerun_failures_max, |
498 options.predictable, | 498 options.predictable, |
499 options.no_harness) | 499 options.no_harness) |
500 | 500 |
501 # TODO(all): Combine "simulator" and "simulator_run". | 501 # TODO(all): Combine "simulator" and "simulator_run". |
502 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 502 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
503 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el'] and \ | 503 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el', \ |
| 504 'ppc', 'ppc64'] and \ |
504 ARCH_GUESS and arch != ARCH_GUESS | 505 ARCH_GUESS and arch != ARCH_GUESS |
505 # Find available test suites and read test cases from them. | 506 # Find available test suites and read test cases from them. |
506 variables = { | 507 variables = { |
507 "arch": arch, | 508 "arch": arch, |
508 "asan": options.asan, | 509 "asan": options.asan, |
509 "deopt_fuzzer": False, | 510 "deopt_fuzzer": False, |
510 "gc_stress": options.gc_stress, | 511 "gc_stress": options.gc_stress, |
511 "isolates": options.isolates, | 512 "isolates": options.isolates, |
512 "mode": mode, | 513 "mode": mode, |
513 "no_i18n": options.no_i18n, | 514 "no_i18n": options.no_i18n, |
514 "no_snap": options.no_snap, | 515 "no_snap": options.no_snap, |
515 "simulator_run": simulator_run, | 516 "simulator_run": simulator_run, |
516 "simulator": utils.UseSimulator(arch), | 517 "simulator": utils.UseSimulator(arch), |
517 "system": utils.GuessOS(), | 518 "system": utils.GuessOS(), |
518 "tsan": options.tsan, | 519 "tsan": options.tsan, |
519 "msan": options.msan, | 520 "msan": options.msan, |
520 "dcheck_always_on": options.dcheck_always_on, | 521 "dcheck_always_on": options.dcheck_always_on, |
| 522 "byteorder": sys.byteorder, |
521 } | 523 } |
522 all_tests = [] | 524 all_tests = [] |
523 num_tests = 0 | 525 num_tests = 0 |
524 test_id = 0 | 526 test_id = 0 |
525 for s in suites: | 527 for s in suites: |
526 s.ReadStatusFile(variables) | 528 s.ReadStatusFile(variables) |
527 s.ReadTestCases(ctx) | 529 s.ReadTestCases(ctx) |
528 if len(args) > 0: | 530 if len(args) > 0: |
529 s.FilterTestCasesByArgs(args) | 531 s.FilterTestCasesByArgs(args) |
530 all_tests += s.tests | 532 all_tests += s.tests |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 exit_code = runner.Run(options.j) | 593 exit_code = runner.Run(options.j) |
592 overall_duration = time.time() - start_time | 594 overall_duration = time.time() - start_time |
593 | 595 |
594 if options.time: | 596 if options.time: |
595 verbose.PrintTestDurations(suites, overall_duration) | 597 verbose.PrintTestDurations(suites, overall_duration) |
596 return exit_code | 598 return exit_code |
597 | 599 |
598 | 600 |
599 if __name__ == "__main__": | 601 if __name__ == "__main__": |
600 sys.exit(Main()) | 602 sys.exit(Main()) |
OLD | NEW |