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

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

Issue 781763002: Teach the test runner whether it's running on a trybot or not (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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
« no previous file with comments | « tools/run-deopt-fuzzer.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 default="ia32,x64,arm") 134 default="ia32,x64,arm")
135 result.add_option("--arch-and-mode", 135 result.add_option("--arch-and-mode",
136 help="Architecture and mode in the format 'arch.mode'", 136 help="Architecture and mode in the format 'arch.mode'",
137 default=None) 137 default=None)
138 result.add_option("--asan", 138 result.add_option("--asan",
139 help="Regard test expectations for ASAN", 139 help="Regard test expectations for ASAN",
140 default=False, action="store_true") 140 default=False, action="store_true")
141 result.add_option("--buildbot", 141 result.add_option("--buildbot",
142 help="Adapt to path structure used on buildbots", 142 help="Adapt to path structure used on buildbots",
143 default=False, action="store_true") 143 default=False, action="store_true")
144 result.add_option("--dcheck-always-on",
145 help="Indicates that V8 was compiled with DCHECKs enabled",
146 default=False, action="store_true")
144 result.add_option("--cat", help="Print the source of the tests", 147 result.add_option("--cat", help="Print the source of the tests",
145 default=False, action="store_true") 148 default=False, action="store_true")
146 result.add_option("--flaky-tests", 149 result.add_option("--flaky-tests",
147 help="Regard tests marked as flaky (run|skip|dontcare)", 150 help="Regard tests marked as flaky (run|skip|dontcare)",
148 default="dontcare") 151 default="dontcare")
149 result.add_option("--slow-tests", 152 result.add_option("--slow-tests",
150 help="Regard slow tests (run|skip|dontcare)", 153 help="Regard slow tests (run|skip|dontcare)",
151 default="dontcare") 154 default="dontcare")
152 result.add_option("--pass-fail-tests", 155 result.add_option("--pass-fail-tests",
153 help="Regard pass|fail tests (run|skip|dontcare)", 156 help="Regard pass|fail tests (run|skip|dontcare)",
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 "gc_stress": options.gc_stress, 504 "gc_stress": options.gc_stress,
502 "isolates": options.isolates, 505 "isolates": options.isolates,
503 "mode": mode, 506 "mode": mode,
504 "no_i18n": options.no_i18n, 507 "no_i18n": options.no_i18n,
505 "no_snap": options.no_snap, 508 "no_snap": options.no_snap,
506 "simulator_run": simulator_run, 509 "simulator_run": simulator_run,
507 "simulator": utils.UseSimulator(arch), 510 "simulator": utils.UseSimulator(arch),
508 "system": utils.GuessOS(), 511 "system": utils.GuessOS(),
509 "tsan": options.tsan, 512 "tsan": options.tsan,
510 "msan": options.msan, 513 "msan": options.msan,
514 "dcheck_always_on": options.dcheck_always_on,
511 } 515 }
512 all_tests = [] 516 all_tests = []
513 num_tests = 0 517 num_tests = 0
514 test_id = 0 518 test_id = 0
515 for s in suites: 519 for s in suites:
516 s.ReadStatusFile(variables) 520 s.ReadStatusFile(variables)
517 s.ReadTestCases(ctx) 521 s.ReadTestCases(ctx)
518 if len(args) > 0: 522 if len(args) > 0:
519 s.FilterTestCasesByArgs(args) 523 s.FilterTestCasesByArgs(args)
520 all_tests += s.tests 524 all_tests += s.tests
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 exit_code = runner.Run(options.j) 585 exit_code = runner.Run(options.j)
582 overall_duration = time.time() - start_time 586 overall_duration = time.time() - start_time
583 587
584 if options.time: 588 if options.time:
585 verbose.PrintTestDurations(suites, overall_duration) 589 verbose.PrintTestDurations(suites, overall_duration)
586 return exit_code 590 return exit_code
587 591
588 592
589 if __name__ == "__main__": 593 if __name__ == "__main__":
590 sys.exit(Main()) 594 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/run-deopt-fuzzer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698