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

Side by Side Diff: test/benchmarks/testcfg.py

Issue 1245623005: [test] Key variant flags by variant name everywhere. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | test/preparser/testcfg.py » ('j') | test/preparser/testcfg.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 17 matching lines...) Expand all
28 28
29 import os 29 import os
30 import shutil 30 import shutil
31 import subprocess 31 import subprocess
32 import tarfile 32 import tarfile
33 33
34 from testrunner.local import testsuite 34 from testrunner.local import testsuite
35 from testrunner.objects import testcase 35 from testrunner.objects import testcase
36 36
37 37
38 class BenchmarksVariantFlagsBuilder(testsuite.VariantFlagsBuilder):
39 def AllVariants(self, testcase):
40 # Both --nocrankshaft and --stressopt are very slow. Add TF but without
41 # always opt to match the way the benchmarks are run for performance
42 # testing.
43 return self.FastVariants(testcase)
44
45
38 class BenchmarksTestSuite(testsuite.TestSuite): 46 class BenchmarksTestSuite(testsuite.TestSuite):
39 47
40 def __init__(self, name, root): 48 def __init__(self, name, root):
41 super(BenchmarksTestSuite, self).__init__(name, root) 49 super(BenchmarksTestSuite, self).__init__(name, root)
42 self.testroot = root 50 self.testroot = root
43 51
44 def ListTests(self, context): 52 def ListTests(self, context):
45 tests = [] 53 tests = []
46 for test in [ 54 for test in [
47 "kraken/ai-astar", 55 "kraken/ai-astar",
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ("http://kraken-mirror.googlecode.com/svn/trunk/kraken/tests/" 183 ("http://kraken-mirror.googlecode.com/svn/trunk/kraken/tests/"
176 "kraken-1.1/"), 184 "kraken-1.1/"),
177 "8", "kraken") 185 "8", "kraken")
178 186
179 self._DownloadIfNecessary( 187 self._DownloadIfNecessary(
180 "http://octane-benchmark.googlecode.com/svn/trunk/", 188 "http://octane-benchmark.googlecode.com/svn/trunk/",
181 "26", "octane") 189 "26", "octane")
182 190
183 os.chdir(old_cwd) 191 os.chdir(old_cwd)
184 192
185 def VariantFlags(self, testcase, default_flags): 193 def VariantFlagsBuilder(self):
186 # Both --nocrankshaft and --stressopt are very slow. Add TF but without 194 return BenchmarksVariantFlagsBuilder
187 # always opt to match the way the benchmarks are run for performance
188 # testing.
189 return [[], ["--turbo"]]
Michael Achenbach 2015/07/27 12:37:45 This completely ignored the status file. The new a
190 195
191 196
192 def GetSuite(name, root): 197 def GetSuite(name, root):
193 return BenchmarksTestSuite(name, root) 198 return BenchmarksTestSuite(name, root)
OLDNEW
« no previous file with comments | « no previous file | test/preparser/testcfg.py » ('j') | test/preparser/testcfg.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698