Commit Graph

5 Commits

Author SHA1 Message Date
Adrien Larbanet
d1ca56c8cd overall: Adding IgnoreError() where Status was discarded
Bug: 387
Change-Id: I720b7a99a1c7a24eb8e2554629529d1e24394cb1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/49041
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
2021-08-16 18:43:40 +00:00
Wyatt Hepler
81017fe1af pw_unit_test: Fix and test RPC service
- Update pw_unit_test's pw_rpc server streaming call to the new API.
- Fix issue where the test runner would crash if the first test was
  disabled.
- Add test that runs unit tests in a C++ binary from Python with the
  unit test RPC server.

Change-Id: I11657c5813696e44b50e71aa6c2e62cc80635e1e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/55511
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-08-04 23:07:26 +00:00
Armando Montanez
32988e0ba0 pw_protobuf: Deprecate old encoder
Marks the old pw::protobuf::Encoder as deprecated. For the interim, use
pigweed's new pw::protobuf::StreamingEncoder. The
pw::protobuf::MemoryEncoder will be renamed to replace the original
Encoder.

Bugs: 384
Change-Id: Ifbbf73af7c9b6cf5737c326ef10a4ecf70521adf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/46621
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
2021-07-27 18:12:50 +00:00
Alexei Frolov
47a4304ca6 pw_unit_test: Add test suite filter
This updates the unit test framework to accept an optional list of test
suites to run. If set, RUN_ALL_TESTS will only run test cases which
match the provided suites. Additionally, tracking of skipped and
disabled tests in a test run is added.

The unit test RPC service is also updated to accept a list of suites in
a test run request.

Change-Id: Ia1aefdcf2314c24431bff75378c30fcdfdd24c27
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/40061
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Joe Ethier <jethier@google.com>
2021-04-12 18:36:18 +00:00
Alexei Frolov
80246796fe pw_unit_test: Add RPC service
This implements an RPC service that streams pw_unit_test events, as well
as a unit test main that initializes a server with the test service
registered and an HDLC serial channel.

Change-Id: I6c66f2216c54d82aa70c351d7d3d99d9a5c173de
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/23901
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-11-18 17:55:18 +00:00