| 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 every benchmark that has a composable measurement. | 5 """Run the first page of every benchmark that has a composable measurement. |
| 6 | 6 |
| 7 Ideally this test would be comprehensive, but the above serves as a | 7 Ideally this test would be comprehensive, but the above serves as a |
| 8 kind of smoke test. | 8 kind of smoke test. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 if hasattr(benchmark, 'generated_profile_archive'): | 88 if hasattr(benchmark, 'generated_profile_archive'): |
| 89 # We'd like to test these, but don't know how yet. | 89 # We'd like to test these, but don't know how yet. |
| 90 continue | 90 continue |
| 91 | 91 |
| 92 class BenchmarkSmokeTest(unittest.TestCase): | 92 class BenchmarkSmokeTest(unittest.TestCase): |
| 93 pass | 93 pass |
| 94 setattr(BenchmarkSmokeTest, benchmark.Name(), SmokeTestGenerator(benchmark)) | 94 setattr(BenchmarkSmokeTest, benchmark.Name(), SmokeTestGenerator(benchmark)) |
| 95 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) | 95 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) |
| 96 | 96 |
| 97 return suite | 97 return suite |
| OLD | NEW |