Commit Graph

11 Commits

Author SHA1 Message Date
Wyatt Hepler
1a96094ce6 Fix copyright notices
- Add missing copright header in conf.py.
- Fix inconsistent copyright notice line breaking.

Change-Id: Ib78f7768643069c49ff986a48a176df9fd06e891
2019-11-27 22:34:02 +00:00
Paul Mathieu
97b967a692 unit_test: allow targets to specify their own test main
This allows having test-specific, per-target init logic.
Kept the existing test main as default.

Change-Id: I418dc4f9eefe0bc9d66fcb24d6c4573757f37144
2019-11-21 19:15:08 +00:00
Wyatt Hepler
83d42485f0 pw_span: Update deduction guides
- Use the deduction guides specified in the C++20 draft standard.
- Expand tests to cover all deduction guides.

Change-Id: I9ab0c44b7bb1097c554c7e56f0b174b2615cacd3
2019-11-19 18:57:26 -08:00
Alexei Frolov
a454c68bd8 Define pw_test_group template
This change adds a GN template to the pw_unit_test module which defines
a group of unit tests. The template creates a generated_file target with
JSON metadata for the unit tests and dependencies within the test group.
These metadata files are intended to be parsed by the test runner script
to run unit tests outside of GN.

A pw_test_group target is added to each of the existing modules which
have unit tests.

Change-Id: I363b937da365d0a3482a979feace18ecba1807a9
2019-11-19 20:52:52 +00:00
Rob Mohr
c2787500d5 Move loads to beginning of BUILD files.
Change-Id: Idb918a48cfe6149f624295f6712fbf0a3a36a7ff
2019-11-19 18:20:03 +00:00
Rob Mohr
cd59b7e076 Change 'size() == 0' to 'empty()'.
This came from a clang-tidy warning.

Change-Id: Ieee35262ab773e7314fbb0d3c0b197016734297d
2019-11-19 18:19:51 +00:00
Rob Mohr
c70366e906 Simplify bazel build.
Use variables instead of functions, and add wrappers for builtins.

Change-Id: If6e75efe35ce2fe754f2ed7421497bc1f5d47507
2019-11-18 11:24:53 -08:00
Rob Mohr
e8fbe6a882 Add license metadata to bazel files.
Change-Id: Id32c7db700f3fba809d4e90473cbd3e8b8d7ca47
2019-11-15 11:52:14 -08:00
Rob Mohr
75e5fc9a15 Add pw_string to bazel build.
Change-Id: I0aa7741959b741de082d44afe87786754b572951
2019-11-14 09:16:03 -08:00
Rob Mohr
be98ead12a Add bazel build system files.
Build everything with 'bazel build //...' and run all tests with
'bazel test //...'.

Change-Id: Ia912e999e33caa9b490002d639dc4c9a80034afc
2019-11-14 07:16:44 -08:00
Wyatt Hepler
771056581c pw_span module
pw::span is a stand-in for C++20's std::span.

Change-Id: I1f36d5da43493c20b4806f6cb1198faf62d47743
2019-11-08 17:15:01 -08:00