| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2016 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 import os |
| 7 import sys |
| 8 |
| 9 CHROMIUM_SRC_DIR = os.path.abspath( |
| 10 os.path.join(os.path.dirname(__file__), '..', '..', '..', '..')) |
| 11 PERF_DIR = os.path.join(CHROMIUM_SRC_DIR, 'tools', 'perf') |
| 12 sys.path.append(PERF_DIR) |
| 13 |
| 14 from chrome_telemetry_build import chromium_config |
| 15 sys.path.append(chromium_config.GetTelemetryDir()) |
| 16 |
| 17 from telemetry import project_config |
| 18 from telemetry.testing import browser_test_runner |
| 19 |
| 20 |
| 21 def main(): |
| 22 options = browser_test_runner.TestRunOptions() |
| 23 config = project_config.ProjectConfig( |
| 24 top_level_dir=os.path.dirname(__file__), |
| 25 benchmark_dirs=[os.path.join(os.path.dirname(__file__), 'browser_tests')]) |
| 26 return browser_test_runner.Run(config, options, sys.argv[1:]) |
| 27 |
| 28 |
| 29 if __name__ == '__main__': |
| 30 sys.exit(main()) |
| OLD | NEW |