Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: tools/run-tests.py

Issue 866843003: Contribution of PowerPC port (continuation of 422063005) - AIX Common1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address second set of comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 options.no_i18n, 524 options.no_i18n,
525 options.random_seed, 525 options.random_seed,
526 options.no_sorting, 526 options.no_sorting,
527 options.rerun_failures_count, 527 options.rerun_failures_count,
528 options.rerun_failures_max, 528 options.rerun_failures_max,
529 options.predictable, 529 options.predictable,
530 options.no_harness) 530 options.no_harness)
531 531
532 # TODO(all): Combine "simulator" and "simulator_run". 532 # TODO(all): Combine "simulator" and "simulator_run".
533 simulator_run = not options.dont_skip_simulator_slow_tests and \ 533 simulator_run = not options.dont_skip_simulator_slow_tests and \
534 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el'] and \ 534 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el', \
535 'ppc', 'ppc64'] and \
535 ARCH_GUESS and arch != ARCH_GUESS 536 ARCH_GUESS and arch != ARCH_GUESS
536 # Find available test suites and read test cases from them. 537 # Find available test suites and read test cases from them.
537 variables = { 538 variables = {
538 "arch": arch, 539 "arch": arch,
539 "asan": options.asan, 540 "asan": options.asan,
540 "deopt_fuzzer": False, 541 "deopt_fuzzer": False,
541 "gc_stress": options.gc_stress, 542 "gc_stress": options.gc_stress,
542 "isolates": options.isolates, 543 "isolates": options.isolates,
543 "mode": MODES[mode]["status_mode"], 544 "mode": MODES[mode]["status_mode"],
544 "no_i18n": options.no_i18n, 545 "no_i18n": options.no_i18n,
545 "no_snap": options.no_snap, 546 "no_snap": options.no_snap,
546 "simulator_run": simulator_run, 547 "simulator_run": simulator_run,
547 "simulator": utils.UseSimulator(arch), 548 "simulator": utils.UseSimulator(arch),
548 "system": utils.GuessOS(), 549 "system": utils.GuessOS(),
549 "tsan": options.tsan, 550 "tsan": options.tsan,
550 "msan": options.msan, 551 "msan": options.msan,
551 "dcheck_always_on": options.dcheck_always_on, 552 "dcheck_always_on": options.dcheck_always_on,
553 "byteorder": sys.byteorder,
552 } 554 }
553 all_tests = [] 555 all_tests = []
554 num_tests = 0 556 num_tests = 0
555 test_id = 0 557 test_id = 0
556 for s in suites: 558 for s in suites:
557 s.ReadStatusFile(variables) 559 s.ReadStatusFile(variables)
558 s.ReadTestCases(ctx) 560 s.ReadTestCases(ctx)
559 if len(args) > 0: 561 if len(args) > 0:
560 s.FilterTestCasesByArgs(args) 562 s.FilterTestCasesByArgs(args)
561 all_tests += s.tests 563 all_tests += s.tests
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 exit_code = runner.Run(options.j) 625 exit_code = runner.Run(options.j)
624 overall_duration = time.time() - start_time 626 overall_duration = time.time() - start_time
625 627
626 if options.time: 628 if options.time:
627 verbose.PrintTestDurations(suites, overall_duration) 629 verbose.PrintTestDurations(suites, overall_duration)
628 return exit_code 630 return exit_code
629 631
630 632
631 if __name__ == "__main__": 633 if __name__ == "__main__":
632 sys.exit(Main()) 634 sys.exit(Main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698