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

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

Issue 1410743002: [test] Add new variant default set for exhaustive testing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.6
Patch Set: Created 5 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 | « no previous file | 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ], 73 ],
74 "unittests": [ 74 "unittests": [
75 "unittests", 75 "unittests",
76 ], 76 ],
77 } 77 }
78 78
79 TIMEOUT_DEFAULT = 60 79 TIMEOUT_DEFAULT = 60
80 80
81 VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"] 81 VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"]
82 82
83 EXHAUSTIVE_VARIANTS = VARIANTS + [
84 # TODO(machenbach): Add always opt turbo variant.
85 ]
86
83 DEBUG_FLAGS = ["--nohard-abort", "--nodead-code-elimination", 87 DEBUG_FLAGS = ["--nohard-abort", "--nodead-code-elimination",
84 "--nofold-constants", "--enable-slow-asserts", 88 "--nofold-constants", "--enable-slow-asserts",
85 "--debug-code", "--verify-heap"] 89 "--debug-code", "--verify-heap"]
86 RELEASE_FLAGS = ["--nohard-abort", "--nodead-code-elimination", 90 RELEASE_FLAGS = ["--nohard-abort", "--nodead-code-elimination",
87 "--nofold-constants"] 91 "--nofold-constants"]
88 92
89 MODES = { 93 MODES = {
90 "debug": { 94 "debug": {
91 "flags": DEBUG_FLAGS, 95 "flags": DEBUG_FLAGS,
92 "timeout_scalefactor": 4, 96 "timeout_scalefactor": 4,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 help="Don't sort tests according to duration of last run.", 247 help="Don't sort tests according to duration of last run.",
244 default=False, dest="no_sorting", action="store_true") 248 default=False, dest="no_sorting", action="store_true")
245 result.add_option("--no-stress", "--nostress", 249 result.add_option("--no-stress", "--nostress",
246 help="Don't run crankshaft --always-opt --stress-op test", 250 help="Don't run crankshaft --always-opt --stress-op test",
247 default=False, dest="no_stress", action="store_true") 251 default=False, dest="no_stress", action="store_true")
248 result.add_option("--no-variants", "--novariants", 252 result.add_option("--no-variants", "--novariants",
249 help="Don't run any testing variants", 253 help="Don't run any testing variants",
250 default=False, dest="no_variants", action="store_true") 254 default=False, dest="no_variants", action="store_true")
251 result.add_option("--variants", 255 result.add_option("--variants",
252 help="Comma-separated list of testing variants: %s" % VARIAN TS) 256 help="Comma-separated list of testing variants: %s" % VARIAN TS)
257 result.add_option("--exhaustive-variants",
258 default=False, action="store_true",
259 help="Use exhaustive set of default variants.")
253 result.add_option("--outdir", help="Base directory with compile output", 260 result.add_option("--outdir", help="Base directory with compile output",
254 default="out") 261 default="out")
255 result.add_option("--predictable", 262 result.add_option("--predictable",
256 help="Compare output of several reruns of each test", 263 help="Compare output of several reruns of each test",
257 default=False, action="store_true") 264 default=False, action="store_true")
258 result.add_option("-p", "--progress", 265 result.add_option("-p", "--progress",
259 help=("The style of progress indicator" 266 help=("The style of progress indicator"
260 " (verbose, dots, color, mono)"), 267 " (verbose, dots, color, mono)"),
261 choices=progress.PROGRESS_INDICATORS.keys(), default="mono") 268 choices=progress.PROGRESS_INDICATORS.keys(), default="mono")
262 result.add_option("--quickcheck", default=False, action="store_true", 269 result.add_option("--quickcheck", default=False, action="store_true",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 """Convert buildbot build configs to configs understood by the v8 runner. 334 """Convert buildbot build configs to configs understood by the v8 runner.
328 335
329 V8 configs are always lower case and without the additional _x64 suffix for 336 V8 configs are always lower case and without the additional _x64 suffix for
330 64 bit builds on windows with ninja. 337 64 bit builds on windows with ninja.
331 """ 338 """
332 mode = config[:-4] if config.endswith('_x64') else config 339 mode = config[:-4] if config.endswith('_x64') else config
333 return mode.lower() 340 return mode.lower()
334 341
335 def ProcessOptions(options): 342 def ProcessOptions(options):
336 global ALL_VARIANTS 343 global ALL_VARIANTS
344 global EXHAUSTIVE_VARIANTS
337 global VARIANTS 345 global VARIANTS
338 346
339 # Architecture and mode related stuff. 347 # Architecture and mode related stuff.
340 if options.arch_and_mode: 348 if options.arch_and_mode:
341 options.arch_and_mode = [arch_and_mode.split(".") 349 options.arch_and_mode = [arch_and_mode.split(".")
342 for arch_and_mode in options.arch_and_mode.split(",")] 350 for arch_and_mode in options.arch_and_mode.split(",")]
343 options.arch = ",".join([tokens[0] for tokens in options.arch_and_mode]) 351 options.arch = ",".join([tokens[0] for tokens in options.arch_and_mode])
344 options.mode = ",".join([tokens[1] for tokens in options.arch_and_mode]) 352 options.mode = ",".join([tokens[1] for tokens in options.arch_and_mode])
345 options.mode = options.mode.split(",") 353 options.mode = options.mode.split(",")
346 for mode in options.mode: 354 for mode in options.mode:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 if options.gc_stress: 386 if options.gc_stress:
379 options.extra_flags += GC_STRESS_FLAGS 387 options.extra_flags += GC_STRESS_FLAGS
380 388
381 if options.asan: 389 if options.asan:
382 options.extra_flags.append("--invoke-weak-callbacks") 390 options.extra_flags.append("--invoke-weak-callbacks")
383 options.extra_flags.append("--omit-quit") 391 options.extra_flags.append("--omit-quit")
384 392
385 if options.novfp3: 393 if options.novfp3:
386 options.extra_flags.append("--noenable-vfp3") 394 options.extra_flags.append("--noenable-vfp3")
387 395
396 if options.exhaustive_variants:
397 # This is used on many bots. It includes a larger set of default variants.
398 # Other options for manipulating variants still apply afterwards.
399 VARIANTS = EXHAUSTIVE_VARIANTS
400
388 if options.msan: 401 if options.msan:
389 VARIANTS = ["default"] 402 VARIANTS = ["default"]
390 403
391 if options.tsan: 404 if options.tsan:
392 VARIANTS = ["default"] 405 VARIANTS = ["default"]
393 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 406 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)),
394 'sanitizers', 'tsan_suppressions.txt') 407 'sanitizers', 'tsan_suppressions.txt')
395 tsan_options = '%s suppressions=%s' % ( 408 tsan_options = '%s suppressions=%s' % (
396 os.environ.get('TSAN_OPTIONS', ''), suppressions_file) 409 os.environ.get('TSAN_OPTIONS', ''), suppressions_file)
397 os.environ['TSAN_OPTIONS'] = tsan_options 410 os.environ['TSAN_OPTIONS'] = tsan_options
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 verbose.PrintTestDurations(suites, overall_duration) 717 verbose.PrintTestDurations(suites, overall_duration)
705 718
706 if num_tests == 0: 719 if num_tests == 0:
707 print("Warning: no tests were run!") 720 print("Warning: no tests were run!")
708 721
709 return exit_code 722 return exit_code
710 723
711 724
712 if __name__ == "__main__": 725 if __name__ == "__main__":
713 sys.exit(Main()) 726 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698