[run host script] Add a build rule run_target_test_and_host_script

This build rule wraps running `ffx test`, then calling a host script,
into a single python_host_test.

We want to keep the test execution order rigid in order to motivate
users to split tests into target-side data collection and host-side data
processing, when needed.

Convert the `flatland_view_provider_with_host_script` to use this
rule and call `trace2json` as the host script to demonstrate how to use
this new template. This is only used to show how to use the template.
Realistically, I'd like to migrate the end_to_end/per/test/... to this
new style.

Bug: 116493

Change-Id: I642d74a9083a62781b33b63b42f4c707f468d4b0
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/760322
Reviewed-by: Shai Barack <shayba@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
Reviewed-by: Ankur Mittal <anmittal@google.com>
Commit-Queue: Yuan Zhi <yuanzhi@google.com>
6 files changed
tree: 3d0995e283afda340f854bb89910be05c1f47be1
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gitmodules
  20. .gn
  21. .style.yapf
  22. analysis_options.yaml
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. fuchsia.code-workspace
  28. LICENSE
  29. OWNERS
  30. PATENTS
  31. pyrightconfig.json
  32. README.md
  33. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.