third_party.pigweed.src/pw_preprocessor
Alexei Frolov 925fb8f510 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
2019-11-08 01:16:04 +00:00
..
public/pw_preprocessor Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
boolean_test.cc Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
BUILD.gn Build and run unit tests through GN 2019-11-08 01:16:04 +00:00
concat_test.cc Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
docs.rst Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
macro_arg_count_test.cc Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
README.md Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
util_test.cc Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00

pw_preprocessor: Useful C preprocessor macros

The pw_preprocessor module provides several helpful preprocessor macros for use in C and C++ code.