chore(dev): 调整test用例结构

This commit is contained in:
jing
2026-03-13 21:37:37 +08:00
parent b26c40f6ad
commit 10ea8aad14
44 changed files with 124 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ cmake --build build -j "$(nproc)"
跑完整编译流程自检:从 SysY 源码生成 AArch64 汇编,完成汇编、链接,在 QEMU 下运行结果程序,并与 `test/test_case` 下同名 `.out` 自动比对:
```bash
./scripts/verify_asm.sh test/test_case/function/simple_add.sy test/test_result/function/asm --run
./scripts/verify_asm.sh test/test_case/functional/simple_add.sy test/test_result/function/asm --run
```
如果最终看到 `输出匹配: test/test_case/simple_add.out`,说明当前示例用例 `return a + b` 的完整链路已经跑通。