passport: Add unit tests for camera service

BUG=b:375020169
TEST=./scripts/build.sh

Change-Id: I9180e839871288b0f870032906d04e5a97569a24
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/passport/+/6011547
Reviewed-by: Svitlana Soltysyak <ssoltysyak@google.com>
Commit-Queue: Jason Stanko <jstanko@google.com>
Tested-by: Jason Stanko <jstanko@google.com>
2 files changed
tree: e7b158592fd0c6dc3b7a96b9419be63eb2b55039
  1. go/
  2. scripts/
  3. .gitignore
  4. DIR_METADATA
  5. LICENSE
  6. OWNERS
  7. PRESUBMIT.cfg
  8. README.md
README.md

passport

A service for controlling components in ChromeOS peripheral testbeds.

See go/cros-pass-port

Building

Without Docker

Local Machine

The executable can be built on your local machine by running ./scripts/build.sh

Testing

When not using docker, the service can be started in server mode by running:

./go/bin/passport

Once a service is running, it can be verified in a separate terminal by running:

./go/bin/passport -mode DETECT

This will probe for all components connected to the machine and log them to STDOUT. This can also be used to check an already running service on a remote machine.

It's also possible to quickly test the executable without starting two separate processes by running:

./go/bin/passport -mode TEST

This will perform the same actions as DETECT except both the client and server will be started in the same process without needing a separate terminal window.