tree: 0efaaa0f0816a70600752484a6d1633e1bd89456 [path history] [tgz]
  4. fidl/
  5. lib/
  6. meta/
  7. src/

Inspect Validator

Reviewed on: 2019-09-24

Inspect Validator exercises libraries that write Inspect VMOs and evaluates the resulting VMOs for correctness and memory efficiency.


To add this project to your build, append --with //src/diagnostics/inspect_validator:tests to the fx set invocation.

For example:

fx set core.chromebook-x64 --with '//topaz/bundles:buildbot' --with //src/diagnostics/inspect_validator:tests

The Rust puppet is --with //src/diagnostics/inspect_validator/lib/rust:tests.

The C++puppet is --with //src/diagnostics/inspect_validator/lib/cpp:tests.


Inspect Validator will be run as part of CQ/CI. To run manually, see “Testing”.

Invoke with at least one “--url fuchsia-pkg://....” argument. Also valid: “--output text” or “--output json” (defaults to json).


To run unit tests:

--with //src/diagnostics/inspect_validator:tests
fx run-test inspect_validator_tests
fx build && fx shell run_test_component fuchsia-pkg:// && echo Success!

To run an integration test to evaluate the Rust Inspect library:

--with //src/diagnostics/inspect_validator/lib/rust:tests
fx run-test inspect_validator_test_rust
fx build && fx shell run fuchsia-pkg:// && echo Success!

To manually run one or more puppets by specifying their URLs (in this case, the Rust puppet):

--with //src/diagnostics/inspect_validator
fx build && fx shell run fuchsia-pkg:// --url fuchsia-pkg://

Source layout

The test entrypoint is located in src/ It connects to and controls one or more “puppet” programs located under lib/(language) such as lib/rust/src/ Since Dart is not currently supported in //src, its puppet will be located at //topaz/public/dart/fuchsia_inspect/test/validator_puppet.