Commit Graph

3 Commits

Author SHA1 Message Date
Keir Mierle
da0bccb98f pw_unit_test: pw_log unit test event handler
This adds a pw_log based unit test event handler, and switches it to be
the default.

Change-Id: I83808e1e0ffcb0061644a45d4acc1d47f1161f57
2020-01-17 23:02:29 +00:00
Wyatt Hepler
a55d4c758b pw_unit_test: Make partially C++11 compatible
Make the TEST/TEST_F macros and EXPECT_TRUE/EXPECT_FALSE available in
C++11.

Change-Id: Ib37409c1a96ee50b20079ac9cf60315069db2b3b
2020-01-17 09:06:30 -08:00
Wyatt Hepler
0fbcdfc3cd Basic CMake build
- Automatically add simple modules with pw_auto_add_simmple_module.
- Define libraries in a module with pw_add_module_library.
- Define tests and test groups with pw_add_test and
  pw_add_test_to_groups.
- Tests execute with full Ninja dependency resolution, as in the GN
  build.
- Add CMakeLists.txt for existing modules.
- Currently there is no support for targets, but these libraries would
  be trivial to integrate with an existing CMake build.

Change-Id: If73d8b61bce88f91141737eb773f1ebce3a7676e
2020-01-04 01:05:46 +00:00