Files
frame/tests/test_sbom.py
T
lainandSisyphus a6d6168fd5 chore: add community files, CI workflows, and host test tooling
Add the repository-facing scaffolding:

- Community/legal: README.md, LICENSE (GPL-3.0-or-later), NOTICE,
  CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, .gitleaks.toml
- CI: .github/ workflows (ci.yml aggregate gate, nightly.yml, codeql.yml),
  issue/PR templates, dependabot config (pinned Actions per README)
- Host tooling: tools/frame_tools (ruff/pyright/pytest gates, partition,
  evidence-schema, doc-links, SBOM checks), tests/, pyproject.toml, uv.lock
- poc/ host side: poc/host contract-test suite (ASan/TSan-capable),
  poc/README.md, poc/poc-a.code-workspace

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
2026-08-31 08:00:51 +08:00

17 lines
605 B
Python

from pathlib import Path
from frame_tools.sbom import generate_sbom, locked_components
def test_repository_sbom_has_locked_idf_and_lvgl() -> None:
components = locked_components(Path("."))
references = {str(component["bom-ref"]) for component in components}
assert "pkg:github/espressif/[email protected]" in references
assert "pkg:espressif/lvgl/[email protected]" in references
assert "pkg:github/google/googletest@52eb8108c5bdec04579160ae17225d66034bd723" in references
def test_sbom_generation_is_deterministic() -> None:
assert generate_sbom(Path(".")) == generate_sbom(Path("."))