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

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

Issue 1204643003: [test] Teach test runner about whether novfp3 is on or off (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 default=None) 180 default=None)
181 result.add_option("--asan", 181 result.add_option("--asan",
182 help="Regard test expectations for ASAN", 182 help="Regard test expectations for ASAN",
183 default=False, action="store_true") 183 default=False, action="store_true")
184 result.add_option("--buildbot", 184 result.add_option("--buildbot",
185 help="Adapt to path structure used on buildbots", 185 help="Adapt to path structure used on buildbots",
186 default=False, action="store_true") 186 default=False, action="store_true")
187 result.add_option("--dcheck-always-on", 187 result.add_option("--dcheck-always-on",
188 help="Indicates that V8 was compiled with DCHECKs enabled", 188 help="Indicates that V8 was compiled with DCHECKs enabled",
189 default=False, action="store_true") 189 default=False, action="store_true")
190 result.add_option("--novfp3",
191 help="Indicates that V8 was compiled without VFP3 support",
192 default=False, action="store_true")
190 result.add_option("--cat", help="Print the source of the tests", 193 result.add_option("--cat", help="Print the source of the tests",
191 default=False, action="store_true") 194 default=False, action="store_true")
192 result.add_option("--flaky-tests", 195 result.add_option("--flaky-tests",
193 help="Regard tests marked as flaky (run|skip|dontcare)", 196 help="Regard tests marked as flaky (run|skip|dontcare)",
194 default="dontcare") 197 default="dontcare")
195 result.add_option("--slow-tests", 198 result.add_option("--slow-tests",
196 help="Regard slow tests (run|skip|dontcare)", 199 help="Regard slow tests (run|skip|dontcare)",
197 default="dontcare") 200 default="dontcare")
198 result.add_option("--pass-fail-tests", 201 result.add_option("--pass-fail-tests",
199 help="Regard pass|fail tests (run|skip|dontcare)", 202 help="Regard pass|fail tests (run|skip|dontcare)",
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 options.no_presubmit = True 360 options.no_presubmit = True
358 if options.command_prefix: 361 if options.command_prefix:
359 print("Specifying --command-prefix disables network distribution, " 362 print("Specifying --command-prefix disables network distribution, "
360 "running tests locally.") 363 "running tests locally.")
361 options.no_network = True 364 options.no_network = True
362 options.command_prefix = shlex.split(options.command_prefix) 365 options.command_prefix = shlex.split(options.command_prefix)
363 options.extra_flags = shlex.split(options.extra_flags) 366 options.extra_flags = shlex.split(options.extra_flags)
364 367
365 if options.gc_stress: 368 if options.gc_stress:
366 options.extra_flags += GC_STRESS_FLAGS 369 options.extra_flags += GC_STRESS_FLAGS
367 370
Michael Achenbach 2015/06/23 08:47:48 Optionally you could the new mode imply options.ex
368 if options.asan: 371 if options.asan:
369 options.extra_flags.append("--invoke-weak-callbacks") 372 options.extra_flags.append("--invoke-weak-callbacks")
370 options.extra_flags.append("--omit-quit") 373 options.extra_flags.append("--omit-quit")
371 374
372 if options.msan: 375 if options.msan:
373 VARIANTS = ["default"] 376 VARIANTS = ["default"]
374 377
375 if options.tsan: 378 if options.tsan:
376 VARIANTS = ["default"] 379 VARIANTS = ["default"]
377 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 380 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)),
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 "isolates": options.isolates, 586 "isolates": options.isolates,
584 "mode": MODES[mode]["status_mode"], 587 "mode": MODES[mode]["status_mode"],
585 "no_i18n": options.no_i18n, 588 "no_i18n": options.no_i18n,
586 "no_snap": options.no_snap, 589 "no_snap": options.no_snap,
587 "simulator_run": simulator_run, 590 "simulator_run": simulator_run,
588 "simulator": utils.UseSimulator(arch), 591 "simulator": utils.UseSimulator(arch),
589 "system": utils.GuessOS(), 592 "system": utils.GuessOS(),
590 "tsan": options.tsan, 593 "tsan": options.tsan,
591 "msan": options.msan, 594 "msan": options.msan,
592 "dcheck_always_on": options.dcheck_always_on, 595 "dcheck_always_on": options.dcheck_always_on,
596 "novfp3": options.novfp3,
593 "byteorder": sys.byteorder, 597 "byteorder": sys.byteorder,
594 } 598 }
595 all_tests = [] 599 all_tests = []
596 num_tests = 0 600 num_tests = 0
597 for s in suites: 601 for s in suites:
598 s.ReadStatusFile(variables) 602 s.ReadStatusFile(variables)
599 s.ReadTestCases(ctx) 603 s.ReadTestCases(ctx)
600 if len(args) > 0: 604 if len(args) > 0:
601 s.FilterTestCasesByArgs(args) 605 s.FilterTestCasesByArgs(args)
602 all_tests += s.tests 606 all_tests += s.tests
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 exit_code = runner.Run(options.j) 680 exit_code = runner.Run(options.j)
677 overall_duration = time.time() - start_time 681 overall_duration = time.time() - start_time
678 682
679 if options.time: 683 if options.time:
680 verbose.PrintTestDurations(suites, overall_duration) 684 verbose.PrintTestDurations(suites, overall_duration)
681 return exit_code 685 return exit_code
682 686
683 687
684 if __name__ == "__main__": 688 if __name__ == "__main__":
685 sys.exit(Main()) 689 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