commit | 925fb8f5101a145fd799e2e5773fa6457b519633 | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Tue Nov 05 16:32:30 2019 -0800 |
committer | Alexei Frolov <frolv@google.com> | Fri Nov 08 01:16:04 2019 +0000 |
tree | c9e79cd16f02c984021c403ec2dcedcf4a8c1b06 | |
parent | 979890d732309959b227a4a9e539731b09fb6b50 [diff] |
Build and run unit tests through GN This change adds a GN template for defining unit test executables. The template, called pw_test, defines the executable and outputs a JSON metadata file for the test. A new build argument is added. This argument determines whether unit test run targets are supported by the current build target. If this is set, the pw_test template additionally creates a run target for its test executable which invokes the executable through a script. A basic test runner script is added to the pw_unit_test module. This script currently only runs a single test executable directly. The unit tests in the pw_preprocessor module are updated to use the pw_test template. Change-Id: I3cbde9c19440276dbab80dd2bab5fec87abe6d7e
Pigweed is a collection of embedded-focused libraries, which we call “modules”. These modules are designed for small-footprint MMU-less microcontrollers like the ST Micro STM32L452 or the Nordic NRF82832. The modules are designed to facilitate easy integration into existing codebases.
Pigweed is in the early stages of development.