test_an_unambiguous_root_kconfig_is_found_and_stored_repo_relative¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
Root first, because an unambiguous root `Kconfig` is the convention every Kconfig build system shares. The path must come back REPO-RELATIVE: `build_meta` is published over MCP, and an absolute path here is the machine-layout disclosure that forced the build-version-9 bump.
Verifies REQ-DDB-PIPE-007 REQ-DDB-PIPE-014 REQ-DDB-QUERY-006
Given
- —
When
location = discover_kconfig(repo)
Then
- ✓ location.source equals SOURCE_ROOT
- ✓ location.path equals Path(KCONFIG_NAME)
- ✓ location.path.is_absolute() is false
- ✓ location.searched holds
tests/test_kconfig.py:124 · its file's page
What it checks (4)
assert location.source == SOURCE_ROOTobservesdiscover_kconfigvialocationassert location.path == Path(KCONFIG_NAME)observesdiscover_kconfigvialocationassert not location.path.is_absolute()observesdiscover_kconfigvialocationassert location.searched, "a discovery that names no locations cannot be audited"observesdiscover_kconfigvialocation
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-007 | catalog | unknown |
| REQ-DDB-PIPE-014 | catalog | 1 of 5: within_repo |
| REQ-DDB-QUERY-006 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-005 measured