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

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

Issue 11088027: Added a simple dead code removal phase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/utils.h ('k') | tools/test.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"] 49 DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"]
50 TIMEOUT_DEFAULT = 60 50 TIMEOUT_DEFAULT = 60
51 TIMEOUT_SCALEFACTOR = {"debug" : 4, 51 TIMEOUT_SCALEFACTOR = {"debug" : 4,
52 "release" : 1 } 52 "release" : 1 }
53 53
54 # Use this to run several variants of the tests. 54 # Use this to run several variants of the tests.
55 VARIANT_FLAGS = [[], 55 VARIANT_FLAGS = [[],
56 ["--stress-opt", "--always-opt"], 56 ["--stress-opt", "--always-opt"],
57 ["--nocrankshaft"]] 57 ["--nocrankshaft"]]
58 MODE_FLAGS = { 58 MODE_FLAGS = {
59 "debug" : ["--nobreak-on-abort", "--enable-slow-asserts", 59 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination",
60 "--debug-code", "--verify-heap"], 60 "--enable-slow-asserts", "--debug-code", "--verify-heap"],
61 "release" : ["--nobreak-on-abort"]} 61 "release" : ["--nobreak-on-abort", "--nodead-code-elimination"]}
62 62
63 63
64 def BuildOptions(): 64 def BuildOptions():
65 result = optparse.OptionParser() 65 result = optparse.OptionParser()
66 result.add_option("--arch", 66 result.add_option("--arch",
67 help=("The architecture to run tests for, " 67 help=("The architecture to run tests for, "
68 "'auto' or 'native' for auto-detect"), 68 "'auto' or 'native' for auto-detect"),
69 default="ia32,x64,arm") 69 default="ia32,x64,arm")
70 result.add_option("--arch-and-mode", 70 result.add_option("--arch-and-mode",
71 help="Architecture and mode in the format 'arch.mode'", 71 help="Architecture and mode in the format 'arch.mode'",
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 except KeyboardInterrupt: 346 except KeyboardInterrupt:
347 return 1 347 return 1
348 348
349 if options.time: 349 if options.time:
350 verbose.PrintTestDurations(suites, overall_duration) 350 verbose.PrintTestDurations(suites, overall_duration)
351 return exit_code 351 return exit_code
352 352
353 353
354 if __name__ == "__main__": 354 if __name__ == "__main__":
355 sys.exit(Main()) 355 sys.exit(Main())
OLDNEW
« no previous file with comments | « src/utils.h ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698