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

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

Issue 230743002: Add the ability to disable tests in nosnap mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 result.add_option("--no-i18n", "--noi18n", 142 result.add_option("--no-i18n", "--noi18n",
143 help="Skip internationalization tests", 143 help="Skip internationalization tests",
144 default=False, action="store_true") 144 default=False, action="store_true")
145 result.add_option("--no-network", "--nonetwork", 145 result.add_option("--no-network", "--nonetwork",
146 help="Don't distribute tests on the network", 146 help="Don't distribute tests on the network",
147 default=(utils.GuessOS() != "linux"), 147 default=(utils.GuessOS() != "linux"),
148 dest="no_network", action="store_true") 148 dest="no_network", action="store_true")
149 result.add_option("--no-presubmit", "--nopresubmit", 149 result.add_option("--no-presubmit", "--nopresubmit",
150 help='Skip presubmit checks', 150 help='Skip presubmit checks',
151 default=False, dest="no_presubmit", action="store_true") 151 default=False, dest="no_presubmit", action="store_true")
152 result.add_option("--no-snap", "--nosnap",
153 help='Test a build compiled without snapshot.',
154 default=False, dest="no_snap", action="store_true")
152 result.add_option("--no-stress", "--nostress", 155 result.add_option("--no-stress", "--nostress",
153 help="Don't run crankshaft --always-opt --stress-op test", 156 help="Don't run crankshaft --always-opt --stress-op test",
154 default=False, dest="no_stress", action="store_true") 157 default=False, dest="no_stress", action="store_true")
155 result.add_option("--no-variants", "--novariants", 158 result.add_option("--no-variants", "--novariants",
156 help="Don't run any testing variants", 159 help="Don't run any testing variants",
157 default=False, dest="no_variants", action="store_true") 160 default=False, dest="no_variants", action="store_true")
158 result.add_option("--variants", 161 result.add_option("--variants",
159 help="Comma-separated list of testing variants") 162 help="Comma-separated list of testing variants")
160 result.add_option("--outdir", help="Base directory with compile output", 163 result.add_option("--outdir", help="Base directory with compile output",
161 default="out") 164 default="out")
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 arch in ['arm64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS 403 arch in ['arm64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS
401 # Find available test suites and read test cases from them. 404 # Find available test suites and read test cases from them.
402 variables = { 405 variables = {
403 "arch": arch, 406 "arch": arch,
404 "asan": options.asan, 407 "asan": options.asan,
405 "deopt_fuzzer": False, 408 "deopt_fuzzer": False,
406 "gc_stress": options.gc_stress, 409 "gc_stress": options.gc_stress,
407 "isolates": options.isolates, 410 "isolates": options.isolates,
408 "mode": mode, 411 "mode": mode,
409 "no_i18n": options.no_i18n, 412 "no_i18n": options.no_i18n,
413 "no_snap": options.no_snap,
410 "simulator_run": simulator_run, 414 "simulator_run": simulator_run,
411 "simulator": utils.UseSimulator(arch), 415 "simulator": utils.UseSimulator(arch),
412 "system": utils.GuessOS(), 416 "system": utils.GuessOS(),
413 } 417 }
414 all_tests = [] 418 all_tests = []
415 num_tests = 0 419 num_tests = 0
416 test_id = 0 420 test_id = 0
417 for s in suites: 421 for s in suites:
418 s.ReadStatusFile(variables) 422 s.ReadStatusFile(variables)
419 s.ReadTestCases(ctx) 423 s.ReadTestCases(ctx)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 except KeyboardInterrupt: 489 except KeyboardInterrupt:
486 raise 490 raise
487 491
488 if options.time: 492 if options.time:
489 verbose.PrintTestDurations(suites, overall_duration) 493 verbose.PrintTestDurations(suites, overall_duration)
490 return exit_code 494 return exit_code
491 495
492 496
493 if __name__ == "__main__": 497 if __name__ == "__main__":
494 sys.exit(Main()) 498 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