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

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

Issue 667903004: Add an --msan flag to run-tests.py. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: addressed comments Created 6 years, 2 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
515 "msan": options.msan,
512 } 516 }
513 all_tests = [] 517 all_tests = []
514 num_tests = 0 518 num_tests = 0
515 test_id = 0 519 test_id = 0
516 for s in suites: 520 for s in suites:
517 s.ReadStatusFile(variables) 521 s.ReadStatusFile(variables)
518 s.ReadTestCases(ctx) 522 s.ReadTestCases(ctx)
519 if len(args) > 0: 523 if len(args) > 0:
520 s.FilterTestCasesByArgs(args) 524 s.FilterTestCasesByArgs(args)
521 all_tests += s.tests 525 all_tests += s.tests
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 exit_code = runner.Run(options.j) 586 exit_code = runner.Run(options.j)
583 overall_duration = time.time() - start_time 587 overall_duration = time.time() - start_time
584 588
585 if options.time: 589 if options.time:
586 verbose.PrintTestDurations(suites, overall_duration) 590 verbose.PrintTestDurations(suites, overall_duration)
587 return exit_code 591 return exit_code
588 592
589 593
590 if __name__ == "__main__": 594 if __name__ == "__main__":
591 sys.exit(Main()) 595 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