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.json files for the active variant (app or bootloader), parses them, resolves all paths to waf Nodes, and populates self.test_configs - a list of dictionaries ready to be passed to bld().

Supported config keys in each test.json:
  • platform (str): Optional host platform ("win32" or

    "linux") on which the config is enabled.

  • 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").