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

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: updates 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
375 if options.novfp3:
376 options.extra_flags.append("--noenable-vfp3")
377
372 if options.msan: 378 if options.msan:
373 VARIANTS = ["default"] 379 VARIANTS = ["default"]
374 380
375 if options.tsan: 381 if options.tsan:
376 VARIANTS = ["default"] 382 VARIANTS = ["default"]
377 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 383 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)),
378 'sanitizers', 'tsan_suppressions.txt') 384 'sanitizers', 'tsan_suppressions.txt')
379 tsan_options = '%s suppressions=%s' % ( 385 tsan_options = '%s suppressions=%s' % (
380 os.environ.get('TSAN_OPTIONS', ''), suppressions_file) 386 os.environ.get('TSAN_OPTIONS', ''), suppressions_file)
381 os.environ['TSAN_OPTIONS'] = tsan_options 387 os.environ['TSAN_OPTIONS'] = tsan_options
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 "isolates": options.isolates, 589 "isolates": options.isolates,
584 "mode": MODES[mode]["status_mode"], 590 "mode": MODES[mode]["status_mode"],
585 "no_i18n": options.no_i18n, 591 "no_i18n": options.no_i18n,
586 "no_snap": options.no_snap, 592 "no_snap": options.no_snap,
587 "simulator_run": simulator_run, 593 "simulator_run": simulator_run,
588 "simulator": utils.UseSimulator(arch), 594 "simulator": utils.UseSimulator(arch),
589 "system": utils.GuessOS(), 595 "system": utils.GuessOS(),
590 "tsan": options.tsan, 596 "tsan": options.tsan,
591 "msan": options.msan, 597 "msan": options.msan,
592 "dcheck_always_on": options.dcheck_always_on, 598 "dcheck_always_on": options.dcheck_always_on,
599 "novfp3": options.novfp3,
593 "byteorder": sys.byteorder, 600 "byteorder": sys.byteorder,
594 } 601 }
595 all_tests = [] 602 all_tests = []
596 num_tests = 0 603 num_tests = 0
597 for s in suites: 604 for s in suites:
598 s.ReadStatusFile(variables) 605 s.ReadStatusFile(variables)
599 s.ReadTestCases(ctx) 606 s.ReadTestCases(ctx)
600 if len(args) > 0: 607 if len(args) > 0:
601 s.FilterTestCasesByArgs(args) 608 s.FilterTestCasesByArgs(args)
602 all_tests += s.tests 609 all_tests += s.tests
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 exit_code = runner.Run(options.j) 683 exit_code = runner.Run(options.j)
677 overall_duration = time.time() - start_time 684 overall_duration = time.time() - start_time
678 685
679 if options.time: 686 if options.time:
680 verbose.PrintTestDurations(suites, overall_duration) 687 verbose.PrintTestDurations(suites, overall_duration)
681 return exit_code 688 return exit_code
682 689
683 690
684 if __name__ == "__main__": 691 if __name__ == "__main__":
685 sys.exit(Main()) 692 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