Commit Graph

17 Commits

Author SHA1 Message Date
Rob Mohr
2f6662c5c6 pw_unit_test: Use inclusive language
Bug: 386
Change-Id: I182bb56f234c9e945e17fd33fe3c59b29f6fced8
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/46582
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: David Rogers <davidrogers@google.com>
2021-05-22 07:29:41 +00:00
Max Koopman
f4789286cc pw_unit_test: Make framework memory pool size configurable
Tested: Configured value on sh build, size of bundle changed.
Change-Id: Iac834fbf8bef078fd9b2ddd6207831c5d467519b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/45440
Commit-Queue: Max Koopman <koopman@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-05-14 19:05:59 +00:00
Shiva Rajagopal
64d10969b3 pw_unit_test: Fixup documentation
* Fix typos in the unit test documentation

Change-Id: I7dec4c8228a487e0dc3562abdc214d612688a635
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/44440
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
2021-05-10 23:08:51 +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
Armando Montanez
72b9385372 pw_toolchain: Subtoolchains and facade tests
Allow generation of subtoolchains based on the currently active
toolchain, which in turn allows us to create facade tests.

Change-Id: Ia3e1cbfaceff19fa82243fe8a3fe70abc6238587
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/24340
Commit-Queue: Armando Montanez <amontanez@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-03-06 01:22:26 +00:00
Alexei Frolov
d3e5cb710d s/pw_hdlc_lite/pw_hdlc/g
This renames the hdlc_lite module to just HDLC to accommodate for future
development.

Change-Id: Ic96502a9f41d3a10179435347d4e8615bc3ae844
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/29042
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-01-11 21:16:53 +00:00
Alexei Frolov
8cc1102fcf pw_unit_test: Python module for running tests over RPC
This adds Python code for running unit tests over RPC, logging the
results by default.

Change-Id: I2887619372f596f6e8fe4fd92a303a3ca72eb3b9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/26960
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
2020-12-12 00:37:27 +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
Alexei Frolov
fbe68ff858 pw_unit_test: Add configurable deps to tests
This creates a build arg which appends additional public dependencies to
unit test targets. This is required after the .lib target change, as
dependencies which were previously included through the test main are no
longer applied to the test sources.

Change-Id: If4595724dd08763dcaac04a7b44e726a604338f8
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/24920
Reviewed-by: Wyatt Hepler <hepler@google.com>
2020-11-17 02:23:51 +00:00
Wyatt Hepler
f9fb90f299 docs: Make labels consistent; remove boilerplate
- Update labels so they use consistent naming. Instead of the
  copy-and-pasted `chapter` prefix, name labels with a prefix consistent
  with what they point to:
  - "module-" for module
  - "target-" for targets
  - "docs-" for general documentation
- Remove the unnecessary highlight and default-domain directives.
  Neither is necessary since the Pigweed docs always specify the
  language in code snippets and other directives.

Change-Id: I55c34e9ec919f6f4670e5d3d008e0edf5fecf05b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/19328
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-10-01 21:47:35 +00:00
Alexei Frolov
199045a40b Expand build system docs
This updates the GN build system's documentation to more generally
describe how to configure a Pigweed project using GN, instead of
specifically explaining the upstream build structure.

Change-Id: Ic3d9423a34400ccfd57da8f642ced7721fe835e4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17402
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-09-11 21:22:22 +00:00
Armando Montanez
a761e32bf9 Update docs
First pass at docs to bring them up to date with The Great GN Refactor.
More to follow.

Change-Id: I02dc977fcdc7bf3efa8fc9080282dee9b1455cdd
2020-06-16 10:00:17 -07:00
Michael Spang
6aa8eb0047 pw_unit_test: Support target specified main()
In particular, this allows implementing main() in the test itself.

Change-Id: Id65975880ce0084f0b1954de7dfde3e2cee0151d
2020-06-16 09:59:25 -07:00
Alexei Frolov
bcac2c9779 pw_unit_test: Add enable_if flag to test groups
This updates pw_test_groups to support the enable_if flag, similar to
unit tests. Disabled test groups become empty GN groups.

Change-Id: Icbdc80d80884d9d2864a72aa468ecd17fa52fbea
2020-05-19 11:22:48 -07:00
Armando Montanez
3d92e81f1c Docs: Add target docs
Adds target docs for the `docs` and `host` builds. Also includes a few
other documentation updates.

Change-Id: Icc973d6d51707c79b7c506d89c8975023e274ef2
2020-03-19 20:49:33 +00:00
Armando Montanez
0054a9be70 Docs: Add missing RST docs
Adds dcos.rst files for all modules lacking documentation.

Change-Id: Ief5594831d31fcb876381a4a3886382fab7d595e
2020-03-17 00:13:35 +00:00
Alexei Frolov
ea39552467 pw_unit_test: Start documentation
This change adds some initial documentation for the unit test module.

Change-Id: Icc9eaa67c11766af8eb3921c9079771efe152af8
2020-03-13 23:25:52 +00:00