3.1.29.2.11. waf_tools.mock.CMock
- class waf_tools.mock.CMock(*k, **kw)
Bases:
TaskTask that generates CMock mock source files from header files.
Invokes
cmock.rbto produceMock<Header>.handMock<Header>.cfrom preprocessed and cleaned header files.- run() None
Execute
cmock.rbto generate mock files.Builds the command from
env.RUBY,env.CMOCK, and the global plus optional per-target configuration files. Executes in the output directory of the first output node.
- scan() tuple[list[Node], list[Node]]
Register the global CMock configuration file as a dependency.
- Returns:
A tuple of (dependency nodes, empty list). The global
bld.cmock_cfgnode is included so that changes to the CMock configuration trigger a rebuild.