MacroExpressions
04   /   Research archive

Maestra

Unit testing with the C/C++ preprocessor

How much of a test system has to run on the target?

Maestra uses preprocessor macros to instrument language constructs as the production compiler builds the test code. The target records a trace. Most of the work of interpreting it belongs on the host.

The paper also proposes Recursive MC/DC, a hierarchical form of modified condition/decision coverage. The archive contains instrumentation macros, a demonstration harness, stubs and reporting examples. It does not include a coverage analyzer.

Start with the paper. The build guide reproduces the demonstration, and the preliminary technical review discusses limitations of the recovered code.