devtools: download shell binaries and set origin when run w/ --mojo-version.

Before, a user of devtools that wanted to use prebuilt mojo at particular
version, had to:

 - set up DEPS hooks and use GN build rules that together downloaded and copied
   the shell and the network service at the correct version to the output
   directory
 - set the --origin to point to deployed mojo services at particular version

This patch adds a --mojo-version flag that does all of the above, downloading
binaries as needed and setting the origin accordingly.

Once consumers switch over to --mojo-version, we can retire the GN rules for
downloading prebuilt shells.

Fixes https://github.com/domokit/devtools/issues/62.
Fixes https://github.com/domokit/devtools/issues/63.

R=qsr@chromium.org

Review URL: https://codereview.chromium.org/1844943004 .

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: da012592f169e8c531e4a92cdf00d3c39413dd34
6 files changed
tree: 1ffbba73d461b14a520d35f553278c1f2c438a10
  1. android_gdb/
  2. android_stack_parser/
  3. devtoolslib/
  4. docs/
  5. .gitignore
  6. mojo_benchmark
  7. mojo_debug
  8. mojo_run
  9. mojo_test
  10. README.md
  11. remote_adb_setup
README.md

Devtools

Unopinionated tools for running, debugging, testing and benchmarking Mojo apps.

Install

git clone https://github.com/domokit/devtools.git

Contents

Devtools offers the following tools:

Additionally, remote_adb_setup script helps to configure adb on a remote machine to communicate with a device attached to a local machine, forwarding the ports used by mojo_run.

Development

The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.