-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_build: Add pw_add_test_group to CMake
Adds the GN like abilty to bundle groups as targets through a new CMake function called pw_add_test_group. This is intended to: 1) Enable target based opt-in of tests for the host and devices as a replacement for the legacy GROUPS approach which does not permit downstream specific control of when to run tests without modifying upstream GROUPS configuration. 2) Enable bundling of unit tests for device unit test builds in order to run a larger set of tests through a single device executable. Also disables adding all pw_add_test instances to the all GROUPS and removes the default of adding pw_add_test instances to the all and default GROUPS if none are specified. Instead pw_add_test instance are only added any GROUPS which are explicitly specified. Change-Id: Ia93b0183a6a427a94dca2d1875a11c6ed92c75ee Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/116363 Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Ewout van Bekkum <ewout@google.com>
- Loading branch information
Ewout van Bekkum
authored and
CQ Bot Account
committed
Nov 4, 2022
1 parent
ff9a876
commit 9ac5535
Showing
2 changed files
with
86 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters