tree: f52b924176a6b1bd7c72c876043805bb3f5effbd [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. leaf-info.json
  4. leaf.bind
  5. leaf_driver.cc
  6. nodegroup.test.bind
  7. nodegroup.test.fidl
  8. README.md
  9. root-info.json
  10. root.bind
  11. root_driver.cc
  12. test.rs
src/devices/tests/v2/node_group/README.md

Composite Test

This test checks that DFv2 Device Groups work, and that services are routed correctly from the nodes to the composite driver.

This test has a ‘root’ driver which creates two nodes, a left node and a right node. It will also create a Device Group that matches their properties and the leaf composite driver.

The ‘root’ driver exposes a service instance ‘fuchsia.nodegroup.test.Service’ to each node. The left instance will always return the number 1 and the right instance will always return the number 2.

The test checks that both service instances are routed and renamed correctly when they go to the composite driver. The instances should be renamed based on the node names in the ‘leaf’ driver‘s bind rules. The ‘leaf’ driver should also be able to see a ‘default’ instance that represents its primary parent’s service instance.