| OLD | NEW | 
|    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 13 matching lines...) Expand all  Loading... | 
|   24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |   24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
|   25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |   25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
|   26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |   26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
|   27  |   27  | 
|   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 statusfile | 
|   34 from testrunner.local import testsuite |   35 from testrunner.local import testsuite | 
|   35 from testrunner.objects import testcase |   36 from testrunner.objects import testcase | 
|   36  |   37  | 
|   37  |   38  | 
|   38 class BenchmarksTestSuite(testsuite.TestSuite): |   39 class BenchmarksTestSuite(testsuite.TestSuite): | 
|   39  |   40  | 
|   40   def __init__(self, name, root): |   41   def __init__(self, name, root): | 
|   41     super(BenchmarksTestSuite, self).__init__(name, root) |   42     super(BenchmarksTestSuite, self).__init__(name, root) | 
|   42     self.testroot = root |   43     self.testroot = root | 
|   43  |   44  | 
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  176          "kraken-1.1/"), |  177          "kraken-1.1/"), | 
|  177         "8", "kraken") |  178         "8", "kraken") | 
|  178  |  179  | 
|  179     self._DownloadIfNecessary( |  180     self._DownloadIfNecessary( | 
|  180         "http://octane-benchmark.googlecode.com/svn/trunk/", |  181         "http://octane-benchmark.googlecode.com/svn/trunk/", | 
|  181         "26", "octane") |  182         "26", "octane") | 
|  182  |  183  | 
|  183     os.chdir(old_cwd) |  184     os.chdir(old_cwd) | 
|  184  |  185  | 
|  185   def VariantFlags(self, testcase, default_flags): |  186   def VariantFlags(self, testcase, default_flags): | 
|  186     # Both --nocrankshaft and --stressopt are very slow. |  187     if testcase.outcomes and statusfile.OnlyStandardVariant(testcase.outcomes): | 
|  187     return [[]] |  188       return [[]] | 
 |  189     # Both --nocrankshaft and --stressopt are very slow. Add TF but without | 
 |  190     # always opt to match the way the benchmarks are run for performance | 
 |  191     # testing. | 
 |  192     return [[], ["--turbo-filter=*"]] | 
|  188  |  193  | 
|  189  |  194  | 
|  190 def GetSuite(name, root): |  195 def GetSuite(name, root): | 
|  191   return BenchmarksTestSuite(name, root) |  196   return BenchmarksTestSuite(name, root) | 
| OLD | NEW |