tast-tests: Add -listtests flag to test executables.

Make both local_tests and remote_tests expose a -listtests
flag that instructs them to print the JSON serialization of
matching tests to stdout and then exit without running
anything.

BUG=chromium:782265
TEST=tests are printed when used with "tast list" command
CQ-DEPEND=I5730d7fbec1c1af79cae685d1fa7d2b3c66f1935

Change-Id: Iadbaac0b08c590626ac2ed980afb09453c95cce5
Reviewed-on: https://chromium-review.googlesource.com/798793
Commit-Ready: Dan Erat <derat@chromium.org>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Jason Clinton <jclinton@chromium.org>
2 files changed
tree: 2f91643a5bfa9961f0ff0f18abfec2f4f56b68d5
  1. src/
  2. README.md
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • src/chromiumos/tast/
    • local/ - main package for the local_tests executable containing “local” tests, i.e. ones that run on-device.
      • tests/ - Local tests, packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - main package for the remote_tests executable containing “remote” tests, i.e. ones that run off-device.
      • tests/ - Remote tests, packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, and documentation are located in the tast repository.

Package documentation is available at godoc.org.