| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Run the first page of one benchmark for every module. | 5 """Run the first page of one benchmark for every module. |
| 6 | 6 |
| 7 Only benchmarks that have a composable measurement are included. | 7 Only benchmarks that have a composable measurement are included. |
| 8 Ideally this test would be comprehensive, however, running one page | 8 Ideally this test would be comprehensive, however, running one page |
| 9 of every benchmark would run impractically long. | 9 of every benchmark would run impractically long. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import os | 12 import os |
| 13 import sys | 13 import sys |
| 14 import unittest | 14 import unittest |
| 15 | 15 |
| 16 from telemetry import benchmark as benchmark_module | 16 from telemetry import benchmark as benchmark_module |
| 17 from telemetry.core import discover | 17 from telemetry.core import discover |
| 18 from telemetry.internal.browser import browser_finder | 18 from telemetry.internal.browser import browser_finder |
| 19 from telemetry.testing import options_for_unittests | 19 from telemetry.testing import options_for_unittests |
| 20 from telemetry.testing import progress_reporter | 20 from telemetry.testing import progress_reporter |
| 21 | 21 |
| 22 from benchmarks import battor |
| 22 from benchmarks import image_decoding | 23 from benchmarks import image_decoding |
| 23 from benchmarks import indexeddb_perf | 24 from benchmarks import indexeddb_perf |
| 24 from benchmarks import jetstream | 25 from benchmarks import jetstream |
| 25 from benchmarks import kraken | 26 from benchmarks import kraken |
| 26 from benchmarks import memory | 27 from benchmarks import memory |
| 27 from benchmarks import octane | 28 from benchmarks import octane |
| 28 from benchmarks import rasterize_and_record_micro | 29 from benchmarks import rasterize_and_record_micro |
| 29 from benchmarks import repaint | 30 from benchmarks import repaint |
| 30 from benchmarks import spaceport | 31 from benchmarks import spaceport |
| 31 from benchmarks import speedometer | 32 from benchmarks import speedometer |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 indexeddb_perf, # Always fails on Win7 & Android Tests builder. | 87 indexeddb_perf, # Always fails on Win7 & Android Tests builder. |
| 87 octane, # Often fails & take long time to timeout on cq bot. | 88 octane, # Often fails & take long time to timeout on cq bot. |
| 88 rasterize_and_record_micro, # Always fails on cq bot. | 89 rasterize_and_record_micro, # Always fails on cq bot. |
| 89 repaint, # Often fails & takes long time to timeout on cq bot. | 90 repaint, # Often fails & takes long time to timeout on cq bot. |
| 90 spaceport, # Takes 451 seconds. | 91 spaceport, # Takes 451 seconds. |
| 91 speedometer, # Takes 101 seconds. | 92 speedometer, # Takes 101 seconds. |
| 92 jetstream, # Take 206 seconds. | 93 jetstream, # Take 206 seconds. |
| 93 text_selection, # Always fails on cq bot. | 94 text_selection, # Always fails on cq bot. |
| 94 memory, # Flaky on bots, crbug.com/513767. | 95 memory, # Flaky on bots, crbug.com/513767. |
| 95 kraken, # Flaky on Android, crbug.com/626174. | 96 kraken, # Flaky on Android, crbug.com/626174. |
| 96 v8_browsing # Flaky on Android, crbug.com/628368. | 97 v8_browsing, # Flaky on Android, crbug.com/628368. |
| 98 battor #Flaky on android, crbug.com/618330. |
| 97 } | 99 } |
| 98 | 100 |
| 99 | 101 |
| 100 def load_tests(loader, standard_tests, pattern): | 102 def load_tests(loader, standard_tests, pattern): |
| 101 del loader, standard_tests, pattern # unused | 103 del loader, standard_tests, pattern # unused |
| 102 suite = progress_reporter.TestSuite() | 104 suite = progress_reporter.TestSuite() |
| 103 | 105 |
| 104 benchmarks_dir = os.path.dirname(__file__) | 106 benchmarks_dir = os.path.dirname(__file__) |
| 105 top_level_dir = os.path.dirname(benchmarks_dir) | 107 top_level_dir = os.path.dirname(benchmarks_dir) |
| 106 | 108 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 merged_attributes = getattr(method, attribute, set()).union( | 141 merged_attributes = getattr(method, attribute, set()).union( |
| 140 getattr(benchmark, attribute, set())) | 142 getattr(benchmark, attribute, set())) |
| 141 if merged_attributes: | 143 if merged_attributes: |
| 142 setattr(method, attribute, merged_attributes) | 144 setattr(method, attribute, merged_attributes) |
| 143 | 145 |
| 144 setattr(BenchmarkSmokeTest, benchmark.Name(), method) | 146 setattr(BenchmarkSmokeTest, benchmark.Name(), method) |
| 145 | 147 |
| 146 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) | 148 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) |
| 147 | 149 |
| 148 return suite | 150 return suite |
| OLD | NEW |