blob: b0dde577a89f315948ce41e289245f352e8738dd (
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
25
26
27
28
29
30
31
32
33
34
|
#!/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
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry'))
from telemetry.core import environment
from telemetry.core import util
from telemetry.page import page_measurement_runner
from telemetry.util import bootstrap
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
CROS_BOOSTRAP_DEPS_PATH = os.path.join(
util.GetChromiumSrcDir(), 'tools', 'cros', 'bootstrap_deps')
def main():
if '--print-bootstrap-deps-cros' in sys.argv:
print bootstrap.ListAllDepsPaths(CROS_BOOSTRAP_DEPS_PATH)
return 0
runner = page_measurement_runner.PageMeasurementRunner()
env = environment.Environment([BASE_DIR])
return runner.Run(env)
if __name__ == '__main__':
sys.exit(main())
|