3.1.29.2.8. waf_tools.mock.load_test_configs
- waf_tools.mock.load_test_configs(self: BuildContext) None
Load test configurations from JSON files.
Discovers all
test.jsonfiles for the active variant (apporbootloader), parses them, resolves all paths to waf Nodes, and populatesself.test_configs- a list of dictionaries ready to be passed tobld().- Supported config keys in each
test.json: - platform (str): Optional host platform (
"win32"or "linux") on which the config is enabled.
- platform (str): Optional host platform (
source (str | list): Source file paths to compile.
test (str): Path to the test source file (relative to the JSON file).
includes (list): Include directory paths.
export_includes (list): Exported include directory paths.
mocks (list): Mock header file paths.
cmock_config (str): An optional per-target CMock configuration.
use (str | list): Dependencies to link against.
defines (list): Compile-time definitions.
cflags (list): Additional C compiler flags.
features (str): Build features (default:
"c cprogram test").
- Supported config keys in each