Fuchsia: modify scripts to run non-test executables

Desktop / Chromium - Kevin Marshall [chromium.org] - 10 August 2017 16:33 EDT

- Move most test runner functionality to "runner_common.py", with the exception of gtest-specific logic.
- Move the test-specific "main()" portions into "test_runner.py".
- Add "exe_runner.py", a very thin wrapper around the test_common functionality.
- Use stripped executables for building the bootfs file, which results in a substantially smaller file size (10x difference!) It's necessary for running larger executables like "headless_shell", which are enormous when unstripped, resulting in long mkbootfs times and higher RAM requirements for in-memory tmpfs disks. The unstripped executable remains intact alongside the stripped executable, for backtrace symbolization.
- Add a GN template "fuchsia_executable_runner", which generates executable runner scripts on non-test targets.


Bug: 746674,752364 Change-Id: Ia39c3d7fdf9bb574049f0112df84951c2e048f41 Reviewed-on: https://chromium-review.googlesource.com/602410 Commit-Queue: Kevin Marshall

143e53f Fuchsia: modify scripts to run non-test executables
build/config/fuchsia/rules.gni | 55 +++-
...st_runner_script.py => create_runner_script.py} | 57 ++--
build/fuchsia/exe_runner.py | 47 +++
build/fuchsia/runner_common.py | 327 +++++++++++++++++++++
build/fuchsia/test_runner.py | 320 ++------------------
headless/BUILD.gn | 10 +
6 files changed, 474 insertions(+), 342 deletions(-)

Upstream: git.chromium.org


  • Share