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

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

Issue 701933003: Fix fast-variants feature in test driver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « no previous file | tools/testrunner/local/testsuite.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 26 matching lines...) Expand all
37 import platform 37 import platform
38 import random 38 import random
39 import shlex 39 import shlex
40 import subprocess 40 import subprocess
41 import sys 41 import sys
42 import time 42 import time
43 43
44 from testrunner.local import execution 44 from testrunner.local import execution
45 from testrunner.local import progress 45 from testrunner.local import progress
46 from testrunner.local import testsuite 46 from testrunner.local import testsuite
47 from testrunner.local.testsuite import VARIANT_FLAGS
47 from testrunner.local import utils 48 from testrunner.local import utils
48 from testrunner.local import verbose 49 from testrunner.local import verbose
49 from testrunner.network import network_execution 50 from testrunner.network import network_execution
50 from testrunner.objects import context 51 from testrunner.objects import context
51 52
52 53
53 ARCH_GUESS = utils.DefaultArch() 54 ARCH_GUESS = utils.DefaultArch()
54 DEFAULT_TESTS = [ 55 DEFAULT_TESTS = [
55 "mjsunit", 56 "mjsunit",
56 "unittests", 57 "unittests",
(...skipping 19 matching lines...) Expand all
76 ], 77 ],
77 "unittests": [ 78 "unittests": [
78 "unittests", 79 "unittests",
79 ], 80 ],
80 } 81 }
81 82
82 TIMEOUT_DEFAULT = 60 83 TIMEOUT_DEFAULT = 60
83 TIMEOUT_SCALEFACTOR = {"debug" : 4, 84 TIMEOUT_SCALEFACTOR = {"debug" : 4,
84 "release" : 1 } 85 "release" : 1 }
85 86
86 # Use this to run several variants of the tests.
87 VARIANT_FLAGS = {
88 "default": [],
89 "stress": ["--stress-opt", "--always-opt"],
90 "turbofan": ["--turbo-asm", "--turbo-filter=*", "--always-opt"],
91 "nocrankshaft": ["--nocrankshaft"]}
92
93 VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"] 87 VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"]
94 88
95 MODE_FLAGS = { 89 MODE_FLAGS = {
96 "debug" : ["--nohard-abort", "--nodead-code-elimination", 90 "debug" : ["--nohard-abort", "--nodead-code-elimination",
97 "--nofold-constants", "--enable-slow-asserts", 91 "--nofold-constants", "--enable-slow-asserts",
98 "--debug-code", "--verify-heap"], 92 "--debug-code", "--verify-heap"],
99 "release" : ["--nohard-abort", "--nodead-code-elimination", 93 "release" : ["--nohard-abort", "--nodead-code-elimination",
100 "--nofold-constants"]} 94 "--nofold-constants"]}
101 95
102 GC_STRESS_FLAGS = ["--gc-interval=500", "--stress-compaction", 96 GC_STRESS_FLAGS = ["--gc-interval=500", "--stress-compaction",
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 exit_code = runner.Run(options.j) 580 exit_code = runner.Run(options.j)
587 overall_duration = time.time() - start_time 581 overall_duration = time.time() - start_time
588 582
589 if options.time: 583 if options.time:
590 verbose.PrintTestDurations(suites, overall_duration) 584 verbose.PrintTestDurations(suites, overall_duration)
591 return exit_code 585 return exit_code
592 586
593 587
594 if __name__ == "__main__": 588 if __name__ == "__main__":
595 sys.exit(Main()) 589 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/testrunner/local/testsuite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698