This updates the pw_test and pw_test_group templates to create a .lib
target which contains the test code as a source_set that can later be
linked into a pw_test. pw_test_groups additionally have a new .bundle
target which builds an executable with all of the group's tests.
Change-Id: Ic77d9d3a02cd29487a9f82001d9bf3314da4fa27
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/24621
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
The "# gn-format disable" comments are no longer necessary. Delete these
comments and reformat with a Vim macro and gn format.
Change-Id: Ia62c40ad73eef91187d0d443d6e3b0fa723e5aa9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/21380
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
This updates several uses of GN's builtin source_set to use
pw_source_set instead.
Change-Id: I067ad500016db7b96ba9ec5a057680639e6c6f73
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17640
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>
pw_log_null implements pw_log backend using an empty inline function.
This ensures that arguments are checked and evaluated consistently with
a functional pw_log backend.
Change-Id: I65761933c50bba228e2154d2bc4f9636bb069b90
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17280
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>