| #!/usr/bin/env python |
| # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # This script finds and executes benchmarks which live in Cluster Telemetry's |
| # repository. |
| |
| import os |
| import sys |
| |
| sys.path.append( |
| os.path.join('/', 'b', 'storage', 'chromium', 'src', 'tools', 'telemetry')) |
| |
| from telemetry import benchmark_runner |
| from telemetry.core import environment |
| |
| |
| CT_BASE_DIR = os.path.join('benchmarks') |
| sys.path.append(os.path.join(CT_BASE_DIR)) |
| |
| |
| if __name__ == '__main__': |
| benchmark_runner.config = environment.Environment([CT_BASE_DIR]) |
| sys.exit(benchmark_runner.main()) |