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

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

Issue 19931005: Add deopt fuzzer tool. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments. Created 7 years, 5 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 mode_flags, options.verbose, 296 mode_flags, options.verbose,
297 timeout, options.isolates, 297 timeout, options.isolates,
298 options.command_prefix, 298 options.command_prefix,
299 options.extra_flags) 299 options.extra_flags)
300 300
301 # Find available test suites and read test cases from them. 301 # Find available test suites and read test cases from them.
302 variables = { 302 variables = {
303 "mode": mode, 303 "mode": mode,
304 "arch": arch, 304 "arch": arch,
305 "system": utils.GuessOS(), 305 "system": utils.GuessOS(),
306 "isolates": options.isolates 306 "isolates": options.isolates,
307 "deopt_fuzzer": False,
307 } 308 }
308 all_tests = [] 309 all_tests = []
309 num_tests = 0 310 num_tests = 0
310 test_id = 0 311 test_id = 0
311 for s in suites: 312 for s in suites:
312 s.ReadStatusFile(variables) 313 s.ReadStatusFile(variables)
313 s.ReadTestCases(ctx) 314 s.ReadTestCases(ctx)
314 if len(args) > 0: 315 if len(args) > 0:
315 s.FilterTestCasesByArgs(args) 316 s.FilterTestCasesByArgs(args)
316 all_tests += s.tests 317 all_tests += s.tests
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 except KeyboardInterrupt: 377 except KeyboardInterrupt:
377 return 1 378 return 1
378 379
379 if options.time: 380 if options.time:
380 verbose.PrintTestDurations(suites, overall_duration) 381 verbose.PrintTestDurations(suites, overall_duration)
381 return exit_code 382 return exit_code
382 383
383 384
384 if __name__ == "__main__": 385 if __name__ == "__main__":
385 sys.exit(Main()) 386 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