Add: type, handshake, platform & hierarchical worker manager unit tests#645
Open
chenshengxin2026 wants to merge 2 commits intohw-native-sys:mainfrom
Open
Add: type, handshake, platform & hierarchical worker manager unit tests#645chenshengxin2026 wants to merge 2 commits intohw-native-sys:mainfrom
chenshengxin2026 wants to merge 2 commits intohw-native-sys:mainfrom
Conversation
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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add 11 new C++ GoogleTest binaries covering types, protocol, platform, and hierarchical layers:
test_pto_types: PTO2 type definitions, enum ranges, struct layoutstest_tensor: tensor construction, properties, edge casestest_core_types: PTO2 core type validationtest_dispatch_payload: dispatch payload layout and serializationtest_handshake: host-device handshake protocoltest_submit_types: submit path type validationtest_runtime_status: runtime status querytest_runtime_graph: host_build_graph runtime graph constructiontest_worker_manager: hierarchical worker manager lifecycletest_platform_memory_allocator: sim memory allocatortest_platform_host_log: host logging layerPart 4 of 5 — split from #427. Depends on #642 (UT infrastructure).
Test plan
no_hardwaretest binaries pass