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

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

Issue 143403004: Fix deopt fuzzer variable set up. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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') | tools/testrunner/local/utils.py » ('j') | 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 381
382 timeout *= TIMEOUT_SCALEFACTOR[mode] 382 timeout *= TIMEOUT_SCALEFACTOR[mode]
383 ctx = context.Context(arch, mode, shell_dir, 383 ctx = context.Context(arch, mode, shell_dir,
384 mode_flags, options.verbose, 384 mode_flags, options.verbose,
385 timeout, options.isolates, 385 timeout, options.isolates,
386 options.command_prefix, 386 options.command_prefix,
387 options.extra_flags, 387 options.extra_flags,
388 options.no_i18n) 388 options.no_i18n)
389 389
390 # Find available test suites and read test cases from them. 390 # Find available test suites and read test cases from them.
391 machine = platform.machine()
392 if (machine and
393 (arch == "mipsel" or arch == "arm") and
394 not arch.startswith(machine)):
395 use_simulator = True
396 else:
397 use_simulator = False
398 variables = { 391 variables = {
399 "arch": arch, 392 "arch": arch,
400 "asan": options.asan, 393 "asan": options.asan,
401 "deopt_fuzzer": False, 394 "deopt_fuzzer": False,
402 "gc_stress": options.gc_stress, 395 "gc_stress": options.gc_stress,
403 "isolates": options.isolates, 396 "isolates": options.isolates,
404 "mode": mode, 397 "mode": mode,
405 "no_i18n": options.no_i18n, 398 "no_i18n": options.no_i18n,
399 "simulator": utils.UseSimulator(arch),
406 "system": utils.GuessOS(), 400 "system": utils.GuessOS(),
407 "simulator": use_simulator,
408 } 401 }
409 all_tests = [] 402 all_tests = []
410 num_tests = 0 403 num_tests = 0
411 test_id = 0 404 test_id = 0
412 for s in suites: 405 for s in suites:
413 s.ReadStatusFile(variables) 406 s.ReadStatusFile(variables)
414 s.ReadTestCases(ctx) 407 s.ReadTestCases(ctx)
415 if len(args) > 0: 408 if len(args) > 0:
416 s.FilterTestCasesByArgs(args) 409 s.FilterTestCasesByArgs(args)
417 all_tests += s.tests 410 all_tests += s.tests
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 except KeyboardInterrupt: 473 except KeyboardInterrupt:
481 raise 474 raise
482 475
483 if options.time: 476 if options.time:
484 verbose.PrintTestDurations(suites, overall_duration) 477 verbose.PrintTestDurations(suites, overall_duration)
485 return exit_code 478 return exit_code
486 479
487 480
488 if __name__ == "__main__": 481 if __name__ == "__main__":
489 sys.exit(Main()) 482 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/run-deopt-fuzzer.py ('k') | tools/testrunner/local/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698