| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 # This script finds and executes benchmarks which live in Cluster Telemetry's | |
| 7 # repository. | |
| 8 | |
| 9 import os | |
| 10 import sys | |
| 11 | |
| 12 sys.path.append( | |
| 13 os.path.join('/', 'b', 'storage', 'chromium', 'src', 'tools', 'telemetry')) | |
| 14 | |
| 15 from telemetry import benchmark_runner | |
| 16 | |
| 17 | |
| 18 TOP_LEVEL_DIR = os.path.dirname(os.path.realpath(__file__)) | |
| 19 CT_BASE_DIR = os.path.join(TOP_LEVEL_DIR, 'benchmarks') | |
| 20 sys.path.insert(0, os.path.join('benchmarks')) | |
| 21 | |
| 22 | |
| 23 if __name__ == '__main__': | |
| 24 config = benchmark_runner.ProjectConfig( | |
| 25 top_level_dir=CT_BASE_DIR, | |
| 26 benchmark_dirs=[CT_BASE_DIR]) | |
| 27 sys.exit(benchmark_runner.main(config)) | |
| OLD | NEW |