blob: 977986b482c1a30090d696e95aec807807f8548d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env python
# Copyright (c) 2012 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.
import os
import sys
TELEMETRY_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
sys.path.append(TELEMETRY_DIR)
from telemetry import project_config
from telemetry.testing import browser_test_runner
def main():
options = browser_test_runner.TestRunOptions()
config = project_config.ProjectConfig(
top_level_dir=os.path.join(TELEMETRY_DIR, 'examples'),
benchmark_dirs=[os.path.join(TELEMETRY_DIR, 'examples', 'browser_tests')])
return browser_test_runner.Run(config, options, sys.argv[1:])
if __name__ == '__main__':
sys.exit(main())
|