Skip to content

Add: type, handshake, platform & hierarchical worker manager unit tests#645

Open
chenshengxin2026 wants to merge 2 commits intohw-native-sys:mainfrom
chenshengxin2026:ut-types-platform
Open

Add: type, handshake, platform & hierarchical worker manager unit tests#645
chenshengxin2026 wants to merge 2 commits intohw-native-sys:mainfrom
chenshengxin2026:ut-types-platform

Conversation

@chenshengxin2026
Copy link
Copy Markdown
Contributor

Summary

Add 11 new C++ GoogleTest binaries covering types, protocol, platform, and hierarchical layers:

  • test_pto_types: PTO2 type definitions, enum ranges, struct layouts
  • test_tensor: tensor construction, properties, edge cases
  • test_core_types: PTO2 core type validation
  • test_dispatch_payload: dispatch payload layout and serialization
  • test_handshake: host-device handshake protocol
  • test_submit_types: submit path type validation
  • test_runtime_status: runtime status query
  • test_runtime_graph: host_build_graph runtime graph construction
  • test_worker_manager: hierarchical worker manager lifecycle
  • test_platform_memory_allocator: sim memory allocator
  • test_platform_host_log: host logging layer

Part 4 of 5 — split from #427. Depends on #642 (UT infrastructure).

Test plan

  • C++ UT build succeeds
  • All 11 new no_hardware test binaries pass

Move existing tests into hierarchical/, pto2_a2a3/, pto2_a5/, types/,
hardware/ subdirectories. Add shared test_helpers.h and stubs/test_stubs.cpp
for reusable test infrastructure. Introduce add_a2a3_pto2_runtime_test()
CMake helper for PTO2 runtime-linked tests.

No new test coverage — this is a structural reorganization to support
upcoming test additions.
Add 11 new C++ GoogleTest binaries:
- types/test_pto_types: PTO2 type definitions, enum ranges, layouts
- types/test_tensor: tensor construction, properties, edge cases
- test_core_types: PTO2 core type validation
- test_dispatch_payload: dispatch payload layout and serialization
- test_handshake: host-device handshake protocol
- test_submit_types: submit path type validation
- test_runtime_status: runtime status query
- test_runtime_graph: host_build_graph runtime graph construction
- test_worker_manager: hierarchical worker manager lifecycle
- test_platform_memory_allocator: sim memory allocator
- test_platform_host_log: host logging layer
@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