Commit Graph

4 Commits

Author SHA1 Message Date
Alexei Frolov
69dccfdac9 pw_unit_test: Add library targets
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>
2020-11-17 02:23:51 +00:00
Wyatt Hepler
d49f8fe3f3 BUILD.gn files: Improve import formatting
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>
2020-10-15 18:12:55 +00:00
Alexei Frolov
f39fbf489c misc: source_set -> pw_source_set
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>
2020-09-08 22:11:30 +00:00
Wyatt Hepler
24a6e27ca8 pw_log_null: pw_log backend that does nothing
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>
2020-09-01 19:41:48 +00:00