Ascend C Testcase Generator
Generates, validates, and appends Ascend C test cases directly into test script repositories to target specific kernel and host implementation semantics.
Ascend C Testcase Generator automates the process of creating rigorous test cases for Huawei Ascend C operator repositories. By analyzing operator source diffs, CodeMaps, and existing test corpora using local tg tooling, it plans target dimensions, creates exact CSV candidate rows, executes replay verification under CANN environments, and appends validated test cases without mutating production source code.
Key Features
01Scans test repositories and corpus headers using automated tg inspection tools
02Executes replay and CANN validation to ensure candidate cases hit target execution paths
03Appends validated candidate rows safely into target CSV tables without modifying existing tests
040 GitHub stars
05Plans semantic test dimensions with guard conditions targeting host and kernel behaviors
06Integrates with Ascend C CodeMap MCP to trace cross-layer writers, readers, and operator dimensions
Use Cases
01Expanding operator test corpus coverage across custom kernel precision and performance tables
02Validating host and kernel execution semantics using CANN and WSL test replay harnesses
03Generating regression test cases for new or modified Ascend C operator pull requests