mojo_run: support parallel Android runs of mojo_run.

This patch adds a `--free-host-ports` flag to devtools that allows to
run dev servers on system-allocated ports (so that we can have parallel
runs) while still using fixed ports on the device (so that the caching
still works).

Running with `--free-host-ports` makes `adb_remote_setup` unable to work
correctly, which is why this is being introduced behind a flag.

Fixes #470.

R=qsr@chromium.org

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

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: eec06de72752abcae761e709de28e9eebd3fa52a
6 files changed
tree: f00a100cb79683c2b4afcc3f53b70fc0bf8976f3
  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.