Chromium Code Reviews| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 result.add_option("--valgrind", help="Run tests through valgrind", | 250 result.add_option("--valgrind", help="Run tests through valgrind", |
| 251 default=False, action="store_true") | 251 default=False, action="store_true") |
| 252 result.add_option("--warn-unused", help="Report unused rules", | 252 result.add_option("--warn-unused", help="Report unused rules", |
| 253 default=False, action="store_true") | 253 default=False, action="store_true") |
| 254 result.add_option("--junitout", help="File name of the JUnit output") | 254 result.add_option("--junitout", help="File name of the JUnit output") |
| 255 result.add_option("--junittestsuite", | 255 result.add_option("--junittestsuite", |
| 256 help="The testsuite name in the JUnit output file", | 256 help="The testsuite name in the JUnit output file", |
| 257 default="v8tests") | 257 default="v8tests") |
| 258 result.add_option("--random-seed", default=0, dest="random_seed", | 258 result.add_option("--random-seed", default=0, dest="random_seed", |
| 259 help="Default seed for initializing random generator") | 259 help="Default seed for initializing random generator") |
| 260 result.add_option("--msan", | |
| 261 help="Regard test expectations for MSAN", | |
| 262 default=False, action="store_true") | |
| 260 return result | 263 return result |
| 261 | 264 |
| 262 | 265 |
| 263 def ProcessOptions(options): | 266 def ProcessOptions(options): |
| 264 global VARIANT_FLAGS | 267 global VARIANT_FLAGS |
| 265 global VARIANTS | 268 global VARIANTS |
| 266 | 269 |
| 267 # Architecture and mode related stuff. | 270 # Architecture and mode related stuff. |
| 268 if options.arch_and_mode: | 271 if options.arch_and_mode: |
| 269 options.arch_and_mode = [arch_and_mode.split(".") | 272 options.arch_and_mode = [arch_and_mode.split(".") |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 501 "asan": options.asan, | 504 "asan": options.asan, |
| 502 "deopt_fuzzer": False, | 505 "deopt_fuzzer": False, |
| 503 "gc_stress": options.gc_stress, | 506 "gc_stress": options.gc_stress, |
| 504 "isolates": options.isolates, | 507 "isolates": options.isolates, |
| 505 "mode": mode, | 508 "mode": mode, |
| 506 "no_i18n": options.no_i18n, | 509 "no_i18n": options.no_i18n, |
| 507 "no_snap": options.no_snap, | 510 "no_snap": options.no_snap, |
| 508 "simulator_run": simulator_run, | 511 "simulator_run": simulator_run, |
| 509 "simulator": utils.UseSimulator(arch), | 512 "simulator": utils.UseSimulator(arch), |
| 510 "system": utils.GuessOS(), | 513 "system": utils.GuessOS(), |
| 511 "tsan": options.tsan, | 514 "tsan": options.tsan, |
|
Michael Achenbach
2014/10/21 14:03:24
You'll need an entry here. And a dummy entry for t
| |
| 512 } | 515 } |
| 513 all_tests = [] | 516 all_tests = [] |
| 514 num_tests = 0 | 517 num_tests = 0 |
| 515 test_id = 0 | 518 test_id = 0 |
| 516 for s in suites: | 519 for s in suites: |
| 517 s.ReadStatusFile(variables) | 520 s.ReadStatusFile(variables) |
| 518 s.ReadTestCases(ctx) | 521 s.ReadTestCases(ctx) |
| 519 if len(args) > 0: | 522 if len(args) > 0: |
| 520 s.FilterTestCasesByArgs(args) | 523 s.FilterTestCasesByArgs(args) |
| 521 all_tests += s.tests | 524 all_tests += s.tests |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 582 exit_code = runner.Run(options.j) | 585 exit_code = runner.Run(options.j) |
| 583 overall_duration = time.time() - start_time | 586 overall_duration = time.time() - start_time |
| 584 | 587 |
| 585 if options.time: | 588 if options.time: |
| 586 verbose.PrintTestDurations(suites, overall_duration) | 589 verbose.PrintTestDurations(suites, overall_duration) |
| 587 return exit_code | 590 return exit_code |
| 588 | 591 |
| 589 | 592 |
| 590 if __name__ == "__main__": | 593 if __name__ == "__main__": |
| 591 sys.exit(Main()) | 594 sys.exit(Main()) |
| OLD | NEW |