diff options
author | ihf@chromium.org <ihf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 09:47:44 +0000 |
---|---|---|
committer | ihf@chromium.org <ihf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 09:47:44 +0000 |
commit | 48209017b42f9f862d7e56607a475b96274dca3c (patch) | |
tree | 278087ec3e31668643948d8b99da145c6aca4432 | |
parent | 4678ae5f82502379568e39cb2de605bc4cbd60dc (diff) | |
download | chromium_src-48209017b42f9f862d7e56607a475b96274dca3c.zip chromium_src-48209017b42f9f862d7e56607a475b96274dca3c.tar.gz chromium_src-48209017b42f9f862d7e56607a475b96274dca3c.tar.bz2 |
Add dedicated cros bootstrap_deps.
This will allow autotest via chromeos-base/chromeos-chrome to bootstrap
telemetry perf and gpu tests.
Also fix gpu_tests/bootstrap_deps as currently the paths are wrong.
BUG=chromium:341333
TEST=Ran "./run_measurement --print-bootstrap-deps-cros" and checked output.
Review URL: https://codereview.chromium.org/166483010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252527 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/test/gpu/gpu_tests/bootstrap_deps | 11 | ||||
-rw-r--r-- | tools/cros/bootstrap_deps | 21 | ||||
-rwxr-xr-x | tools/perf/run_measurement | 11 |
3 files changed, 36 insertions, 7 deletions
diff --git a/content/test/gpu/gpu_tests/bootstrap_deps b/content/test/gpu/gpu_tests/bootstrap_deps index 2e683cb..67c5b70 100644 --- a/content/test/gpu/gpu_tests/bootstrap_deps +++ b/content/test/gpu/gpu_tests/bootstrap_deps @@ -12,12 +12,15 @@ deps = { "https://src.chromium.org/chrome/trunk/src/content/test/gpu/gpu_tests", "src/content/test/gpu/page_sets": "https://src.chromium.org/chrome/trunk/src/content/test/gpu/page_sets", - "src/third_party/webgl_conformance": - "https://src.chromium.org/chrome/trunk/deps/third_party/webgl/sdk/tests", + # TODO(ihf): Figure out a different way to specify this dependency. This + # directory needs to be checked out with the instructions provided by + # https://src.chromium.org/chrome/trunk/src/third_party/webgl/README.chromium + "src/third_party/webgl/src/sdk/tests": + "", } # gpu_tests depends on Telemetry, so pull in the Telemetry deps, too. deps_includes = { - "src/tools/telemetry/tools/bootstrap_deps": - "https://src.chromium.org/chrome/trunk/src/tools/telemetry/tools/bootstrap_deps", + "src/tools/telemetry_tools/bootstrap_deps": + "https://src.chromium.org/chrome/trunk/src/tools/telemetry_tools/bootstrap_deps", } diff --git a/tools/cros/bootstrap_deps b/tools/cros/bootstrap_deps new file mode 100644 index 0000000..ae8169d --- /dev/null +++ b/tools/cros/bootstrap_deps @@ -0,0 +1,21 @@ +# Copyright 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 file specifies dependencies required to bootstrap tools/perf. It is in a +# minimal version of the format used by other DEPS files that gclient can read, +# but it should only be used to bootstrap tools/perf *outside* of a normal +# Chrome checkout. + +deps = { + "src/tools/cros/": + "https://src.chromium.org/chrome/trunk/src/tools/cros/", + } + +# both gpu_tests and perf will pull in telemetry. +deps_includes = { + "src/content/test/gpu/gpu_tests/bootstrap_deps": + "https://src.chromium.org/chrome/trunk/src/content/test/gpu/gpu_tests/bootstrap_deps", + "src/tools/perf/bootstrap_deps": + "https://src.chromium.org/chrome/trunk/src/tools/perf/bootstrap_deps", + } diff --git a/tools/perf/run_measurement b/tools/perf/run_measurement index c65e8ce..d2f9e92c 100755 --- a/tools/perf/run_measurement +++ b/tools/perf/run_measurement @@ -18,6 +18,7 @@ CHECKOUT_BASE_PATH = os.path.join(SCRIPT_PATH, os.pardir, os.pardir, os.pardir) # Directory in which to save bootstrap files. BOOTSTRAP_BASE_PATH = os.path.join(SCRIPT_PATH, 'support', 'bootstrap_files') +CROS_DIR = os.path.join('src', 'tools', 'cros') PERF_DIR = os.path.join('src', 'tools', 'perf') TELEMETRY_DIR = os.path.join('src', 'tools', 'telemetry') TELEMETRY_TOOLS_DIR = os.path.join('src', 'tools', 'telemetry_tools') @@ -61,12 +62,12 @@ def _Bootstrap(bootstrap_deps_url): bootstrap.DownloadDeps(BOOTSTRAP_BASE_PATH, bootstrap_deps_url) -def ListBootstrapDeps(base_path): +def ListBootstrapDeps(base_path, subdir): """List the deps required for telemetry.""" sys.path.append(os.path.join(base_path, TELEMETRY_TOOLS_DIR)) import telemetry_bootstrap - deps_file = os.path.join(base_path, PERF_DIR, DEPS_FILE) + deps_file = os.path.join(base_path, subdir, DEPS_FILE) return telemetry_bootstrap.ListAllDepsPaths(deps_file) @@ -78,8 +79,12 @@ def Main(): new_perf_path = os.path.join(new_base_path, PERF_DIR) new_telemetry_path = os.path.join(new_base_path, TELEMETRY_DIR) + if '--print-bootstrap-deps-cros' in sys.argv: + print ListBootstrapDeps(new_base_path, CROS_DIR) + return 0 + if '--print-bootstrap-deps' in sys.argv: - print ListBootstrapDeps(new_base_path) + print ListBootstrapDeps(new_base_path, PERF_DIR) return 0 sys.path.append(new_perf_path) |