testplans: introduce test group concept

The proximate need for this is to support the wifi pre-cq. For those
tests, we want to run a specific test suite, but only when some code
patterns are matched in a CQ run.

In this new way, we'll have

source_rule("chromite/**", only_test_group = ["chromite"])

test("reef", groups = ["chromite"])
test("coral", groups = ["coral"])

BUG=chromium:1062039,chromium:1012480
TEST=regen

Change-Id: I786d2218c032384134ee9a27d9307006c7cfe933
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2113138
Tested-by: Sean Abraham <seanabraham@chromium.org>
Reviewed-by: Dhanya Ganesh <dhanyaganesh@chromium.org>
Reviewed-by: David Burger <dburger@chromium.org>
Commit-Queue: Sean Abraham <seanabraham@chromium.org>
4 files changed