Skip to content

Add: Python unit tests, documentation & runtime_compiler testability fix#646

Open
chenshengxin2026 wants to merge 1 commit intohw-native-sys:mainfrom
chenshengxin2026:ut-python-docs
Open

Add: Python unit tests, documentation & runtime_compiler testability fix#646
chenshengxin2026 wants to merge 1 commit intohw-native-sys:mainfrom
chenshengxin2026:ut-python-docs

Conversation

@chenshengxin2026
Copy link
Copy Markdown
Contributor

Summary

Add 5 new Python UT modules for build infrastructure:

  • test_elf_parser.py: ELF parsing validation
  • test_env_manager.py: environment manager paths and config
  • test_kernel_compiler.py: kernel compilation pipeline
  • test_runtime_compiler.py: runtime compilation pipeline
  • test_toolchain_setup.py: toolchain discovery and setup

Also includes:

  • Updated conftest.py with improved path setup for isolated UT execution
  • New docs/ut-test-suite.md describing the full test inventory
  • Updated docs/testing.md and docs/ci.md for new UT layout
  • Minor fix in simpler_setup/runtime_compiler.py for testability

Part 5 of 5 — split from #427. Independent of the C++ UT PRs (#642, #643, #644, #645).

Test plan

  • Python UT passes (python3 -m pytest tests/ut/py/ -v)
  • Documentation renders correctly

Add 5 new Python UT modules:
- test_elf_parser.py: ELF parsing validation
- test_env_manager.py: environment manager paths and config
- test_kernel_compiler.py: kernel compilation pipeline
- test_runtime_compiler.py: runtime compilation pipeline
- test_toolchain_setup.py: toolchain discovery and setup

Also:
- Update conftest.py with improved path setup for isolated UT execution
- Add docs/ut-test-suite.md describing the full test inventory
- Update docs/testing.md and docs/ci.md for new UT layout
- Minor fix in runtime_compiler.py for testability
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant